Skip to content

Commit

Permalink
langswitcher fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebarra committed Jul 12, 2024
1 parent cb1ab4c commit f91f51b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import { es } from '../constants/langs/es';
i18n
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
.use(LanguageDetector).init({
supportedLngs: ['en', 'es'],
});

// pass the i18n instance to react-i18next.
.use(initReactI18next)
i18n.use(initReactI18next)
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
Expand Down

0 comments on commit f91f51b

Please sign in to comment.