diff --git a/lib/utils/language.js b/lib/utils/language.js index 5364d22..572c2be 100644 --- a/lib/utils/language.js +++ b/lib/utils/language.js @@ -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 {