Skip to content

Commit

Permalink
feat: 🎸 Chinese (simplified and traditional)
Browse files Browse the repository at this point in the history
  • Loading branch information
kajetan-kazimierczak committed Nov 16, 2021
1 parent cec7ddd commit eed2a75
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/skolplattformen-sthlm/services/languageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'moment/locale/pl'
import 'moment/locale/ru'
import 'moment/locale/sv'
import 'moment/locale/uz-latn'
import 'moment/locale/zh-cn'
import { I18nManager } from 'react-native'

const changeListeners: Record<string, any> = {}
Expand Down
14 changes: 14 additions & 0 deletions apps/skolplattformen-sthlm/utils/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ export const languages: Language[] = [
languageLocalName: 'اَلْعَرَبِيَّةُ',
active: true,
},
{
langCode: 'zh_Hant',
languageName: 'Chinese (traditional)',
languageLocalName: '中國傳統的',
active: true,
},
{
langCode: 'zh_Hans',
languageName: 'Chinese (simplified)',
languageLocalName: '简体中文',
active: true,
},
{
langCode: 'nl',
languageName: 'Dutch',
Expand Down Expand Up @@ -118,6 +130,8 @@ export const translations = {
ru: require('../translations/ru.json'),
so: require('../translations/so.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) => {
Expand Down

0 comments on commit eed2a75

Please sign in to comment.