Commit 7e635425 authored by Thibaut Broggi's avatar Thibaut Broggi

Change the way the language is detected on the client

parent 15d7a82c
Pipeline #1508 passed with stage
in 40 seconds
...@@ -48,7 +48,7 @@ let getImage = function(id, cb) { ...@@ -48,7 +48,7 @@ let getImage = function(id, cb) {
} }
let language = function() { let language = function() {
return (params.lang || navigator.language).indexOf('en') !== -1 ? 'en' : 'fr'; return document.documentElement.lang;
} }
let _ = function(str) { let _ = function(str) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment