mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-06-18 12:14:50 -04:00
Add support for three-letter lang codes
This commit is contained in:
parent
0c9178d392
commit
04b65a0b4e
2 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ window.html10n = (function(window, document, undefined) {
|
|||
return
|
||||
}
|
||||
|
||||
if (!data[lang]) lang = lang.substr(0,2)
|
||||
if (!data[lang]) lang = lang.substr(0, lang.indexOf('-') == -1? lang.length : lang.indexOf('-'))
|
||||
if (!data[lang]) {
|
||||
cb(new Error('Couldn\'t find translations for '+lang))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue