Perfomed complete Marathi translation. Not exactly complete but up to where mr & fr was done.

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