Adds Chinese Simplified
This commit is contained in:
parent
cbcb19cdff
commit
be3958aef5
1 changed files with 6 additions and 1 deletions
|
|
@ -27,6 +27,10 @@ angular.module('copayApp.services')
|
||||||
name: '日本語',
|
name: '日本語',
|
||||||
isoCode: 'ja',
|
isoCode: 'ja',
|
||||||
useIdeograms: true,
|
useIdeograms: true,
|
||||||
|
}, {
|
||||||
|
name: '繁体中文',
|
||||||
|
isoCode: 'zh',
|
||||||
|
useIdeograms: true,
|
||||||
}, {
|
}, {
|
||||||
name: 'Polski',
|
name: 'Polski',
|
||||||
isoCode: 'pl',
|
isoCode: 'pl',
|
||||||
|
|
@ -68,8 +72,9 @@ angular.module('copayApp.services')
|
||||||
root._set = function(lang) {
|
root._set = function(lang) {
|
||||||
$log.debug('Setting default language: ' + lang);
|
$log.debug('Setting default language: ' + lang);
|
||||||
gettextCatalog.setCurrentLanguage(lang);
|
gettextCatalog.setCurrentLanguage(lang);
|
||||||
|
root.currentLanguage = lang;
|
||||||
|
if (lang == 'zh') lang = lang + '-CN'; // Fix for Chinese Simplified
|
||||||
amMoment.changeLocale(lang);
|
amMoment.changeLocale(lang);
|
||||||
root.currentLanguage = lang;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
root.getCurrentLanguage = function() {
|
root.getCurrentLanguage = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue