Adds Chinese Simplified

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-07 17:41:21 -03:00
commit be3958aef5
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -27,6 +27,10 @@ angular.module('copayApp.services')
name: '日本語',
isoCode: 'ja',
useIdeograms: true,
}, {
name: '繁体中文',
isoCode: 'zh',
useIdeograms: true,
}, {
name: 'Polski',
isoCode: 'pl',
@ -68,8 +72,9 @@ angular.module('copayApp.services')
root._set = function(lang) {
$log.debug('Setting default language: ' + lang);
gettextCatalog.setCurrentLanguage(lang);
root.currentLanguage = lang;
if (lang == 'zh') lang = lang + '-CN'; // Fix for Chinese Simplified
amMoment.changeLocale(lang);
root.currentLanguage = lang;
};
root.getCurrentLanguage = function() {