Perfomed complete Hindi translation. Not exactly complete but up to where fr was done.

This commit is contained in:
K
2025-06-21 00:51:41 +05:30
parent 14295f1931
commit 06b11cb2eb
4 changed files with 121 additions and 2 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
// src/service/translation.js
import en from '../locales/en.json';
import hi from '../locales/hi.json';
import fr from '../locales/fr.json';
const translations = { en, fr };
const translations = { en, hi, fr };
export const t = (key, lang = 'en') => {
return translations[lang][key] || key; // Fallback to key if missing