set language for CSS :lang and [FF-only] hyphenation

This commit is contained in:
tophf 2017-12-29 18:19:35 +03:00
parent dea0edbdac
commit 0f96e2fa4d

View File

@ -84,10 +84,10 @@ if (!chrome.app && chrome.windows) {
})); }));
} }
}); });
// set hyphenation language
document.documentElement.setAttribute('lang', chrome.i18n.getUILanguage());
} }
// set language for CSS :lang and [FF-only] hyphenation
document.documentElement.setAttribute('lang', chrome.i18n.getUILanguage());
function onDOMready() { function onDOMready() {
if (document.readyState !== 'loading') { if (document.readyState !== 'loading') {