Disable client side I18n fallbacks

They weren't actually doing anything, as we only ever load
resources for the current language, and the real fallback is
handled on the server when those are built.
This commit is contained in:
Tom Hughes 2025-03-03 20:35:32 +00:00
parent 998ef40d19
commit 84fc417162

View file

@ -21,7 +21,6 @@
I18n.default_locale = OSM.DEFAULT_LOCALE;
I18n.locale = locale;
I18n.fallbacks = true;
// '-' are replaced with '_' in https://github.com/eemeli/make-plural/tree/main/packages/plurals
const pluralizer = plurals[locale.replace(/\W+/g, "_")] || plurals[locale.split("-")[0]];