main
Some checks failed
Deploy Frontend / deploy (push) Has been cancelled

This commit is contained in:
2026-02-05 01:34:13 +03:00
commit 6e3bee17ef
52 changed files with 12306 additions and 0 deletions

31
i18n.ts Normal file
View File

@@ -0,0 +1,31 @@
import React from 'react';
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';
import en from './locales/en.json';
import tr from './locales/tr.json';
import de from './locales/de.json';
import fr from './locales/fr.json';
import es from './locales/es.json';
i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
resources: {
en: { translation: en },
tr: { translation: tr },
de: { translation: de },
fr: { translation: fr },
es: { translation: es }
},
fallbackLng: 'en',
lng: 'en', // Force default to English as requested
interpolation: {
escapeValue: false // react already safes from xss
}
});
export default i18n;