W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2016

Re: [whatwg] Should navigator.language and and/or HTTP Accept-Language include locale?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 25 May 2016 07:15:39 +0200
Message-ID: <CADnb78jjEFEBZHbajPNHwBuACW64bYppyisoLmT2L0zJABYs1Q@mail.gmail.com>
To: Geoffrey Garen <ggaren@apple.com>
Cc: Михаил Гаврилов <mikhail.v.gavrilov@gmail.com>, WHAT Working Group <whatwg@whatwg.org>, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>, Phil Pizlo <fpizlo@apple.com>, Alexey Proskuryakov <ap@apple.com>
On Wed, May 25, 2016 at 4:50 AM, Geoffrey Garen <ggaren@apple.com> wrote:
> My claim is that if you want English language with Russian regional settings then browsers must report “en-ru” in navigator.language.

That doesn't work. What if you want British English and the Russian
locale? Or Canadian French with the US locale? A language tag already
uses that syntax to mean something else. You can't just repurpose it
to indicate locale.

Received on Wednesday, 25 May 2016 05:16:14 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:38 UTC