<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - window.navigator.language incorrectly returns all lowercase string"
   href="https://bugs.webkit.org/show_bug.cgi?id=163096">163096</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>window.navigator.language incorrectly returns all lowercase string
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari Technology Preview
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OS X 10.11
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Bindings
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matt&#64;mattstow.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>cdumez&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When calling window.navigator.language, Safari will return something like &quot;en-us&quot;, whereas every other browser returns &quot;en-US&quot;.

As per [MDN](<a href="https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language">https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language</a>) and defined in [BCP47](<a href="http://www.ietf.org/rfc/bcp/bcp47.txt">http://www.ietf.org/rfc/bcp/bcp47.txt</a>), 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 &quot;en-us&quot; didn't match any languages we had localized strings for.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>