On Node versions 14.17.1 and greater and versions 16.8.0 and smaller Intl.NumberFormat.supportedLocalesOf('nb'); returns an empty array, indicating that the nb locale (Norwegian bokmål) isn't supported. On other versions it correctly returns ['nb'].
Not a problem for Node 16, but is still broken on the newest Node 14 version. From the changelogs of 16.9.0 I couldn't find anything that would be related to locales, so I cannot say what fixed it on Node 16. Nor from the 14.7.1 changelogs anything that might have broken it.
I also tested that the locale does not indeed exist, but instead default to the default locale (at least on my system it's en-US). Thus, this happens:
new Intl.NumberFormat('nb').format(10200.33) // returns '10,200.33'
while it should do, and does on, e.g., 14.17.0, 16.9.0, and 16.18.1:
new Intl.NumberFormat('nb').format(10200.33) // returns '10 200,33'
The same also happens if I use a nb-NO locale string. nn (Norwegian nynorsk) and nn-NO do work.
On Node versions 14.17.1 and greater and versions 16.8.0 and smaller
Intl.NumberFormat.supportedLocalesOf('nb');returns an empty array, indicating that thenblocale (Norwegian bokmål) isn't supported. On other versions it correctly returns['nb'].Not a problem for Node 16, but is still broken on the newest Node 14 version. From the changelogs of 16.9.0 I couldn't find anything that would be related to locales, so I cannot say what fixed it on Node 16. Nor from the 14.7.1 changelogs anything that might have broken it.
I also tested that the locale does not indeed exist, but instead default to the default locale (at least on my system it's
en-US). Thus, this happens:while it should do, and does on, e.g., 14.17.0, 16.9.0, and 16.18.1:
The same also happens if I use a
nb-NOlocale string.nn(Norwegian nynorsk) andnn-NOdo work.