correij / v8-i18n

Automatically exported from code.google.com/p/v8-i18n
Other
0 stars 0 forks source link

Default locale should be browser's default locale #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The default locale, like the one returned by new Intl.LocaleList() is 'root'. 
It should either come from the browser by looking up navigator.language, or if 
that doesn't exist, get a default from ICU or the system.

(Note: navigator.language may not be standard DOM. We may or may not care.)

Original issue reported on code.google.com by roozbeh@google.com on 28 Mar 2012 at 6:22

GoogleCodeExporter commented 8 years ago
The spec seems to say that we must always support the default Locale in the 
services (section 10.1, under [[availableLocales]]). We must check that ICU 
supports the navigator.language language before we return it as the default for 
the DefaultLocale. If ICU doesn't support it, we should return 'und', since 
'root' is not valid BCP 47.

Original comment by roozbeh@google.com on 28 Mar 2012 at 7:55

GoogleCodeExporter commented 8 years ago
Fixed on globalization branch, r47.

Original comment by c...@google.com on 17 Apr 2012 at 6:26