You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 500B

123456789101112131415161718192021222324252627
  1. import i18n from "i18next";
  2. import { initReactI18next } from "react-i18next";
  3. import srTranslations from "./resources/sr";
  4. import enTranslation from "./resources/en";
  5. i18n.use(initReactI18next).init({
  6. compatibilityJSON: "v3",
  7. lng: "sr",
  8. fallbackLng: "sr",
  9. resources: {
  10. sr: {
  11. translation: srTranslations,
  12. },
  13. en: {
  14. translation: enTranslation,
  15. },
  16. },
  17. interpolation: {
  18. escapeValue: false,
  19. },
  20. react: {
  21. useSuspense: true,
  22. },
  23. });
  24. export default i18n;