feat: 🎸 Chinese (simplified and traditional)
This commit is contained in:
parent
cec7ddd860
commit
eed2a7579c
|
@ -14,6 +14,7 @@ import 'moment/locale/pl'
|
||||||
import 'moment/locale/ru'
|
import 'moment/locale/ru'
|
||||||
import 'moment/locale/sv'
|
import 'moment/locale/sv'
|
||||||
import 'moment/locale/uz-latn'
|
import 'moment/locale/uz-latn'
|
||||||
|
import 'moment/locale/zh-cn'
|
||||||
import { I18nManager } from 'react-native'
|
import { I18nManager } from 'react-native'
|
||||||
|
|
||||||
const changeListeners: Record<string, any> = {}
|
const changeListeners: Record<string, any> = {}
|
||||||
|
|
|
@ -20,6 +20,18 @@ export const languages: Language[] = [
|
||||||
languageLocalName: 'اَلْعَرَبِيَّةُ',
|
languageLocalName: 'اَلْعَرَبِيَّةُ',
|
||||||
active: true,
|
active: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
langCode: 'zh_Hant',
|
||||||
|
languageName: 'Chinese (traditional)',
|
||||||
|
languageLocalName: '中國傳統的',
|
||||||
|
active: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
langCode: 'zh_Hans',
|
||||||
|
languageName: 'Chinese (simplified)',
|
||||||
|
languageLocalName: '简体中文',
|
||||||
|
active: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
langCode: 'nl',
|
langCode: 'nl',
|
||||||
languageName: 'Dutch',
|
languageName: 'Dutch',
|
||||||
|
@ -118,6 +130,8 @@ export const translations = {
|
||||||
ru: require('../translations/ru.json'),
|
ru: require('../translations/ru.json'),
|
||||||
so: require('../translations/so.json'),
|
so: require('../translations/so.json'),
|
||||||
sv: require('../translations/sv.json'),
|
sv: require('../translations/sv.json'),
|
||||||
|
zh_Hans: require('../translations/zh_Hans.json'),
|
||||||
|
zh_Hant: require('../translations/zh_Hant.json')
|
||||||
}
|
}
|
||||||
|
|
||||||
export const translate = (key: string, options?: TranslateOptions) => {
|
export const translate = (key: string, options?: TranslateOptions) => {
|
||||||
|
|
Loading…
Reference in New Issue