Skip to content
Snippets Groups Projects
Unverified Commit bf29a01f authored by Xaver Maierhofer's avatar Xaver Maierhofer
Browse files

[TASK] Add lang attribute to html

parent ecd5aee7
Branches
Tags
No related merge requests found
...@@ -61,6 +61,7 @@ define(['polyglot', 'moment', 'helper'], function (Polyglot, moment, helper) { ...@@ -61,6 +61,7 @@ define(['polyglot', 'moment', 'helper'], function (Polyglot, moment, helper) {
router = r; router = r;
window._ = new Polyglot({ locale: getLocale(router.getLang()), allowMissing: true }); window._ = new Polyglot({ locale: getLocale(router.getLang()), allowMissing: true });
helper.getJSON('locale/' + _.locale() + '.json?' + config.cacheBreaker).then(setTranslation); helper.getJSON('locale/' + _.locale() + '.json?' + config.cacheBreaker).then(setTranslation);
document.querySelector('html').setAttribute('lang', _.locale());
} }
return { return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment