mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-21 23:09:51 +01:00
13 lines
397 B
JavaScript
13 lines
397 B
JavaScript
|
(function(document) {
|
||
|
// Set language for l10n
|
||
|
var language = document.cookie.match(/language=(\w{2})/);
|
||
|
if(language) language = language[1];
|
||
|
|
||
|
html10n.bind('indexed', function() {
|
||
|
html10n.localize([language, navigator.language, navigator.userLanguage, 'en'])
|
||
|
})
|
||
|
|
||
|
html10n.bind('localized', function() {
|
||
|
document.documentElement.lang = html10n.getLanguage()
|
||
|
})
|
||
|
})(document)
|