diff options
| author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2021-02-03 01:02:21 -0700 |
|---|---|---|
| committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2021-02-04 19:53:59 -0700 |
| commit | c937a9e85f510820f7d9b98666dcf83f72f80ceb (patch) | |
| tree | 6c79284801233a2edc14716e82c0df46516794a6 /tests/unit/settings/user_settings_keep_only.yml | |
| parent | 321788f14a8a674984b9884094dd9626d6162a33 (diff) | |
[fix] get correct locale with country from browser
Some of our interface locales include uppercase country codes,
which are separated by `_` instead of the more common `-`.
Also, a browser's `Accept-Language` header could be in lowercase.
This commit attempts to normalize those cases so a browser's
language+country codes can better match with our locales.
This solution assumes that our UI locales have nothing more than
language and optionally country. If we ever add a script specific
locale like `zh-Hant-TW` this would have to change to accomodate
that, but the idea would be pretty much the same as this fix.
Diffstat (limited to 'tests/unit/settings/user_settings_keep_only.yml')
0 files changed, 0 insertions, 0 deletions