123456789101112131415161718192021222324252627 |
- import i18n from "i18next";
- import { initReactI18next } from "react-i18next";
-
- import srTranslations from "./resources/sr";
- import enTranslation from "./resources/en";
-
- i18n.use(initReactI18next).init({
- compatibilityJSON: "v3",
- lng: "sr",
- fallbackLng: "sr",
- resources: {
- sr: {
- translation: srTranslations,
- },
- en: {
- translation: enTranslation,
- },
- },
- interpolation: {
- escapeValue: false,
- },
- react: {
- useSuspense: true,
- },
- });
-
- export default i18n;
|