edtech / apps /admin /src /lib /i18n.ts
CognxSafeTrack
feat: implement whatsapp templates management with security hardening, audit logs, and crm integration
0f2f80a
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import en from '../locales/en.json';
import fr from '../locales/fr.json';
import es from '../locales/es.json';
import pt from '../locales/pt.json';
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
resources: {
en: { translation: en },
fr: { translation: fr },
es: { translation: es },
pt: { translation: pt }
},
fallbackLng: 'en',
debug: false,
interpolation: {
escapeValue: false,
}
});
export default i18n;