Set document lang on localization

This commit is contained in:
Lucas Verney 2016-08-02 13:59:26 +02:00
parent d5da4e4818
commit b450365af0
5 changed files with 15 additions and 13 deletions

File diff suppressed because one or more lines are too long

20
app/dist/index.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
app/dist/style.css vendored

File diff suppressed because one or more lines are too long

View File

@ -34,6 +34,8 @@ export const onWindowIntl = () => {
} }
} }
strings = Object.assign(rawMessages["en-US"], strings); strings = Object.assign(rawMessages["en-US"], strings);
// Set html lang attribute
document.documentElement.lang = locale;
let render = () => { let render = () => {
const Root = require("./app/containers/Root").default; const Root = require("./app/containers/Root").default;