bcp47 | Simple Node.js validator for BCP47 locale tags | Internationalization library
kandi X-RAY | bcp47 Summary
kandi X-RAY | bcp47 Summary
Simple validator for BCP47 locale tags.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Checks if a locale matches a locale .
bcp47 Key Features
bcp47 Examples and Code Snippets
Community Discussions
Trending Discussions on bcp47
QUESTION
Before I try to go through the hoops of reporting this as a bug, I would like some feedback to see that this is not my own stupidity.
Edge 93 is on my machine returning en-US formatted numbers and dates with the nb-NO
locale.
(123456.789).toLocaleString('nb-NO')
returns '123,456.789'
.
(new Date(2012, 11, 20, 3, 0, 0)).toLocaleString("nb-NO")
returns '12/20/2012, 3:00:00 AM'
.
Chrome 94 and Firefox 92 return the correct '123 456,789'
and '20.12.2012, 03:00:00'
.
It's almost as if Edge doesn't recognize the BCP47 notation nb-NO
for Norwegian Bokmål. But variations like nb
, no
, nob
, and even nn-NO
, nn
, nyn
(for Norwegian Nynorsk) don't return the correct result either.
ANSWER
Answered 2021-Sep-23 at 06:00Yes, you are right. I did a simple test on the content you mentioned and found that it does have such a problem, but I think you don’t need to worry about it. Because this issue has been resolved in future version of Edge, you will know if you try to test it in Edge Canary. Result in Edge Canary:
So I think you could look forward to the new update of Edge.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bcp47
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page