[TASK] Add lang attribute to html

This commit is contained in:
Xaver Maierhofer 2017-04-21 00:22:13 +02:00
parent ecd5aee769
commit bf29a01fdd
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ define(['polyglot', 'moment', 'helper'], function (Polyglot, moment, helper) {
router = r;
window._ = new Polyglot({ locale: getLocale(router.getLang()), allowMissing: true });
helper.getJSON('locale/' + _.locale() + '.json?' + config.cacheBreaker).then(setTranslation);
document.querySelector('html').setAttribute('lang', _.locale());
}
return {