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.
I18n.default_locale = OSM.DEFAULT_LOCALE;
I18n.locale = locale;
I18n.default_locale = OSM.DEFAULT_LOCALE;
I18n.locale = locale;
// '-' 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]];
// '-' 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]];