1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +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] }]),
);
i18n.use(initReactI18next).init({
fallbackLng: "en-US",
fallbackLng: "en",
resources,
interpolation: {
escapeValue: false, // not needed for react as it escapes by default