Relativetimeformat - inconsistency module name for Norwegian #2669
-
Hello, I noticed that translations for Norwegian are generated with a particular module name for I found the translations for
As meanwhile the translations for
CausesThis inconsistency breaks the pattern and dynamic loader based on locale, hence i am forced to make hardcoded patch if (locale === 'no') {
// the polyfill name for Norwegian is being named with BCP 47 Code
await import('@formatjs/intl-relativetimeformat/locale-data/nb');
return;
}
// locale ISO 3166-1
await import(`@formatjs/intl-relativetimeformat/locale-data/${locale}`) WhyI would like to know if that module name Does anyone know if my workaround is appropriate or what is the right way to make it work? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
nb
is available in both:https://unpkg.com/browse/@formatjs/intl-relativetimeformat@8.1.2/locale-data/nb.js
https://unpkg.com/browse/@formatjs/intl-pluralrules@4.0.11/locale-data/nb.js