You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great Britain allows two different valid time formats:
The 24-hour time format: 14:34
The 12-hour time format: 2:34 pm
Intl uses the 24-hour time format for locale en-GB.
If you want to use the 12-hour time format for GB then you have to use locale en-GB-u-hc-h12.
Please find here a litte demo.
So now assume you are using locale en-GB-u-hc-h12. Then this line
Great Britain allows two different valid time formats:
Intl
uses the 24-hour time format for localeen-GB
.If you want to use the 12-hour time format for GB then you have to use locale
en-GB-u-hc-h12
.Please find here a litte demo.
So now assume you are using locale
en-GB-u-hc-h12
. Then this linelocalize/src/index.ts
Line 120 in 421744e
will fail to detect the proper code (which should be "en-gb").
Please find here a little demo that shows one case where that bug leads to wrong i18n behavior.
It might be a good idea to use
new Intl.Locale('en-GB-u-hc-h12')
(see here and here).The text was updated successfully, but these errors were encountered: