[TASK] Add lang attribute to html
This commit is contained in:
parent
ecd5aee769
commit
bf29a01fdd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user