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] }]),
);
i18n.use(initReactI18next).init({
fallbackLng: "en-US",
fallbackLng: "en",
resources,
interpolation: {
escapeValue: false, // not needed for react as it escapes by default