Skip to content

Commit

Permalink
Update i18n.js
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Jul 16, 2024
1 parent 4f48b66 commit 41ba7e2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/i18n.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import enTranslation from './locales/en/translation.json';
import esTranslation from './locales/es/translation.json';
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import ptTranslation from "./locales/pt/translation.json";
import enTranslation from "./locales/en/translation.json";
import esTranslation from "./locales/es/translation.json";

const resources = {
pt: {
translation: ptTranslation
},
en: {
translation: enTranslation
},
Expand All @@ -12,5 +16,5 @@ const resources = {
}
};

i18n.use(initReactI18next).init({ resources, lng: 'en', fallbackLng: 'en', interpolation: { escapeValue: false } });
export default i18n;
i18n.use(initReactI18next).init({ resources, lng: "pt", fallbackLng: "en", interpolation: { escapeValue: false } });
export default i18n;

0 comments on commit 41ba7e2

Please sign in to comment.