[whatwg] Client side value for language preference

Henri Sivonen hsivonen at iki.fi
Fri Mar 30 06:11:15 PDT 2012


On Thu, Mar 29, 2012 at 10:02 PM, Matthew Nuzum <newz at bearfruit.org> wrote:
> Some browsers have gotten smarter and now send the first value from
> the user's language preference, which is definitely an improvement. I
> suspect this was done in order to preserve backwards compatibility, so
> much of the useful information is left out.
...
> navigator.language.preference = [{lang:'en-gb', weight: 0.7},{lang:
> 'en-us', weight: 0.7},{lang:'en', weight: 0.3}];

Is there a reason to believe that this client-side solution would be
used significantly considering that the HTTP header has not been used
that much?

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/



More information about the whatwg mailing list