Browse Source

Merge pull request #718 from zisra/dev

Fix language fallback
pull/723/head
William Oldham 2 years ago committed by GitHub
parent
commit
9e61ec2758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/setup/i18n.ts

2
src/setup/i18n.ts

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

Loading…
Cancel
Save