From: Dessalines Date: Tue, 15 Sep 2020 18:48:59 +0000 (-0500) Subject: Splitting out chinese region translations. X-Git-Url: http://these/git/%7B%60%24%7BarchiveTodayUrl%7D/%7B%60/feeds/inbox/%24%7BUserService.Instance.auth%7D.xml%60%7D?a=commitdiff_plain;h=33d54d31a0dcc32ccb880cec72f8d173bc101e8c;p=lemmy-ui.git Splitting out chinese region translations. --- diff --git a/lemmy-translations b/lemmy-translations index fcb7155..d1f0e61 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit fcb7155d1214e387744c22f844c20b29077b0ff3 +Subproject commit d1f0e61b0269d5c30c61eccab05353070e1d3fd9 diff --git a/src/shared/i18next.ts b/src/shared/i18next.ts index 3657da3..263a0fa 100644 --- a/src/shared/i18next.ts +++ b/src/shared/i18next.ts @@ -9,7 +9,9 @@ import { de } from './translations/de'; import { fr } from './translations/fr'; import { sv } from './translations/sv'; import { ru } from './translations/ru'; -import { zh } from './translations/zh'; +import { zh_CN } from './translations/zh_CN'; +import { zh_TW } from './translations/zh_TW'; +import { zh_HK } from './translations/zh_HK'; import { nl } from './translations/nl'; import { it } from './translations/it'; import { fi } from './translations/fi'; @@ -39,7 +41,9 @@ const resources = { ka, hi, de, - zh, + zh_CN, + zh_TW, + zh_HK, fr, sv, ru, diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 0e9f3a1..3fda5bb 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -104,7 +104,9 @@ export const languages = [ { code: 'ja', name: '日本語' }, { code: 'pl', name: 'Polski' }, { code: 'pt_BR', name: 'Português Brasileiro' }, - { code: 'zh', name: '中文' }, + { code: 'zh_CN', name: '中文' }, + { code: 'zh_TW', name: '臺灣華語' }, + { code: 'zh_HK', name: '廣東話' }, { code: 'fi', name: 'Suomi' }, { code: 'fr', name: 'Français' }, { code: 'sv', name: 'Svenska' },