Merge pull request #2009 from xatier/master
Add Traditional Chinese in i18n
This commit is contained in:
commit
a56f6ea46f
|
@ -2,7 +2,7 @@ import * as path from 'path'
|
|||
import fs from 'fs'
|
||||
import keys from 'all-object-keys'
|
||||
|
||||
const locales = ['de', 'fr', 'it', 'ja', 'ko', 'pl', 'zh_cn']
|
||||
const locales = ['de', 'fr', 'it', 'ja', 'ko', 'pl', 'zh_cn', 'zh_tw']
|
||||
|
||||
describe('i18n', () => {
|
||||
describe('should not define duplicate keys', () => {
|
||||
|
|
|
@ -14,6 +14,7 @@ import ru from '~/src/config/locales/ru/translation.json'
|
|||
import sv_se from '~/src/config/locales/sv_se/translation.json'
|
||||
import tzm from '~/src/config/locales/tzm/translation.json'
|
||||
import zh_cn from '~/src/config/locales/zh_cn/translation.json'
|
||||
import zh_tw from '~/src/config/locales/zh_tw/translation.json'
|
||||
|
||||
const options: InitOptions = {
|
||||
initImmediate: false,
|
||||
|
@ -65,6 +66,9 @@ const options: InitOptions = {
|
|||
},
|
||||
zh_cn: {
|
||||
translation: zh_cn
|
||||
},
|
||||
zh_tw: {
|
||||
translation: zh_tw
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,6 +31,10 @@ export default {
|
|||
name: '简体中文',
|
||||
key: 'zh_cn'
|
||||
},
|
||||
zh_tw: {
|
||||
name: '繁體中文',
|
||||
key: 'zh_tw'
|
||||
},
|
||||
cs: {
|
||||
name: 'čeština',
|
||||
key: 'cs'
|
||||
|
|
|
@ -34,7 +34,8 @@ export default {
|
|||
Language.ru,
|
||||
Language.sv_se,
|
||||
Language.tzm,
|
||||
Language.zh_cn
|
||||
Language.zh_cn,
|
||||
Language.zh_tw
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue