Skip to content

Commit

Permalink
improve i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jun 23, 2024
1 parent 891ad88 commit d4e3ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion landing/src/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ i18next
.use(LanguageDetector)
.init({
detection: {
order: ['querystring', 'localStorage', 'navigator'],
order: ['localStorage', 'querystring', 'navigator'],
caches: ['localStorage'],
lookupQuerystring: 'lng',
lookupLocalStorage: 'locale',
Expand All @@ -20,6 +20,7 @@ i18next
backend: {
loadPath: 'locales/{{lng}}.json',
},
debug: false,
})

export const i18n = createI18nStore(i18next)

0 comments on commit d4e3ecd

Please sign in to comment.