<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>27555</bug_id>
          
          <creation_ts>2009-07-22 12:49:38 -0700</creation_ts>
          <short_desc>Expose the Accept-Language list as window.navigator.acceptLanguages</short_desc>
          <delta_ts>2023-09-29 13:22:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jungshik Shin">jshin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aa</cc>
    
    <cc>ap</cc>
    
    <cc>dylan</cc>
    
    <cc>erikkay</cc>
    
    <cc>mjs</cc>
    
    <cc>nickbaum</cc>
    
    <cc>xji</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>133853</commentid>
    <comment_count>0</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-07-22 12:49:38 -0700</bug_when>
    <thetext>Currently, the UI language of a browser is exposed via window.navigator.language. Some &quot;clients&quot; need to access the value of Accept-Language the same way ( window.navigator.acceptLanguages). See http://crbug.com/14574</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133855</commentid>
    <comment_count>1</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2009-07-22 12:52:56 -0700</bug_when>
    <thetext>sorry for bug spams.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133886</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-07-22 13:43:24 -0700</bug_when>
    <thetext>It would be great to simplify localization for Web applications, if that&apos;s the rationale for adding this feature to the Web platform, and not just as an extension for Chromium plug-ins.

But it is not obvious whether exposing accept-language is the way to do it. This really looks like a topic for whatwg discussion to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>133890</commentid>
    <comment_count>3</comment_count>
    <who name="Aaron Boodman">aa</who>
    <bug_when>2009-07-22 14:01:42 -0700</bug_when>
    <thetext>The use case we had in mind was actually translation. If we had the accept languages of the browser available to JavaScript, it could be implemented as Chrome extension.

This seems like a reasonable thing to explain through the web platform, but I agree it should also get brought up on whatwg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981372</commentid>
    <comment_count>4</comment_count>
    <who name="Dylan McCall">dylan</who>
    <bug_when>2023-09-29 12:51:23 -0700</bug_when>
    <thetext>Since https://bugs.webkit.org/show_bug.cgi?id=163220, this information is available through the window.navigator.languages property (https://html.spec.whatwg.org/#navigatorlanguage), so I believe this can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981389</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-09-29 13:22:21 -0700</bug_when>
    <thetext>In WebKit, window.navigator.languages is just an array with one element, so it doesn&apos;t add anything new that window.navigator.language didn&apos;t provide.

That said, Accept-Language has been simplified accordingly too, so this feature would be pointless.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>