[DE][PE] Add zh-CN (Chinese) locale (without spell checking)

This commit is contained in:
Julia Radzhabova 2019-01-23 12:47:51 +03:00
parent e351e70bf2
commit 9bfe3b3294
2 changed files with 28 additions and 2 deletions

View file

@ -1828,7 +1828,9 @@ define([
},
loadLanguages: function(apiLangs) {
var langs = [], info;
var langs = [], info,
addlangs = [0x0804];
_.each(apiLangs, function(lang, index, list){
lang = parseInt(lang);
info = Common.util.LanguageInfo.getLocalLanguageName(lang);
@ -1837,6 +1839,17 @@ define([
tip: info[0],
code: lang
});
var idx = _.indexOf(addlangs, lang);
(idx>-1) && addlangs.splice(idx, 1);
}, this);
_.each(addlangs, function(lang, index, list){
info = Common.util.LanguageInfo.getLocalLanguageName(lang);
langs.push({
title: info[1],
tip: info[0],
code: lang
});
}, this);
langs.sort(function(a, b){

View file

@ -1625,7 +1625,9 @@ define([
},
loadLanguages: function(apiLangs) {
var langs = [], info;
var langs = [], info,
addlangs = [0x0804];
_.each(apiLangs, function(lang, index, list){
lang = parseInt(lang);
info = Common.util.LanguageInfo.getLocalLanguageName(lang);
@ -1634,6 +1636,17 @@ define([
tip: info[0],
code: lang
});
var idx = _.indexOf(addlangs, lang);
(idx>-1) && addlangs.splice(idx, 1);
}, this);
_.each(addlangs, function(lang, index, list){
info = Common.util.LanguageInfo.getLocalLanguageName(lang);
langs.push({
title: info[1],
tip: info[0],
code: lang
});
}, this);
langs.sort(function(a, b){