[Webkit-unassigned] [Bug 163096] New: window.navigator.language incorrectly returns all lowercase string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 6 17:37:08 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=163096
Bug ID: 163096
Summary: window.navigator.language incorrectly returns all
lowercase string
Classification: Unclassified
Product: WebKit
Version: Safari Technology Preview
Hardware: Macintosh
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: Bindings
Assignee: webkit-unassigned at lists.webkit.org
Reporter: matt at mattstow.com
CC: cdumez at apple.com
When calling window.navigator.language, Safari will return something like "en-us", whereas every other browser returns "en-US".
As per [MDN](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language) and defined in [BCP47](http://www.ietf.org/rfc/bcp/bcp47.txt), valid Extended Language Subtags must be 2*3ALPHA (uppercase).
In the current web app I'm building, this caused havoc with our localization, as the "en-us" didn't match any languages we had localized strings for.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161007/fe37382d/attachment.html>
More information about the webkit-unassigned
mailing list