summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2018-04-04 16:19:25 +0200
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-04-05 11:01:11 +0200
commit9b6ca49b582e63c6be446f164d318115f47b29d5 (patch)
treeea0652b7ee20801949d6ea398ada4158ed90b179 /addons/web/static/src/js/views/basic/basic_controller.js
parentb5c660d8c059e7b93c64b9dd9bc96eeb6ee5cadf (diff)
[FIX] http: Bokmål language code
- Install Website - Load the 'Norwegian Bokmål' translation, and choose to translate the website - Logout When accessing the website, the language displayed is not consistent to the browser language. 1. `no` shows homepage in `nb_NO` (Firefox only) => expected since Bokmål is the main language in Norway 2. `nb` shows homepage in `en_US` => unexpected 3. `nn` shows homepage in `en_US` => expected since 'Norwegian Nynorsk' is not a language available (this will be the topic of another PR) The issues comes from Babel's side, since `nb` is not in the `LOCALE_ALIASES` while `no` is. We monkey-patch the value to avoid this while Babel is corrected. opw-1827258
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions