1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Merge pull request #718 from zisra/dev

Fix language fallback
This commit is contained in:
William Oldham 2024-01-05 10:00:50 +00:00 committed by GitHub
commit 9e61ec2758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ const resources = Object.fromEntries(
Object.entries(locales).map((entry) => [entry[0], { translation: entry[1] }]), Object.entries(locales).map((entry) => [entry[0], { translation: entry[1] }]),
); );
i18n.use(initReactI18next).init({ i18n.use(initReactI18next).init({
fallbackLng: "en-US", fallbackLng: "en",
resources, resources,
interpolation: { interpolation: {
escapeValue: false, // not needed for react as it escapes by default escapeValue: false, // not needed for react as it escapes by default