mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-09-27 23:22:22 +00:00
24 lines
459 B
TypeScript
24 lines
459 B
TypeScript
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
import es from './locales/es.json';
|
|
import en from './locales/en.json';
|
|
|
|
const resources = {
|
|
es: { translation: es },
|
|
en: { translation: en },
|
|
};
|
|
|
|
i18n
|
|
.use(initReactI18next)
|
|
.init({
|
|
resources,
|
|
lng: 'es', // Default language
|
|
fallbackLng: 'es',
|
|
interpolation: {
|
|
escapeValue: false, // React already handles escaping
|
|
},
|
|
});
|
|
|
|
export default i18n;
|