From 686c4f71bf930625af082ac5e14dc5f79f5c42eb Mon Sep 17 00:00:00 2001 From: sct Date: Tue, 19 Jan 2021 02:17:14 +0000 Subject: [PATCH] feat(lang): add support for Chinese (Traditional) language --- src/components/Layout/LanguagePicker/index.tsx | 14 +++++++++----- src/context/LanguageContext.tsx | 3 ++- src/pages/_app.tsx | 10 ++++++++-- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/Layout/LanguagePicker/index.tsx b/src/components/Layout/LanguagePicker/index.tsx index 071f0506b..84532f00a 100644 --- a/src/components/Layout/LanguagePicker/index.tsx +++ b/src/components/Layout/LanguagePicker/index.tsx @@ -23,7 +23,7 @@ const availableLanguages: AvailableLanguageObject = { }, ja: { code: 'ja', - display: '日本語', + display: 'Japanese', }, fr: { code: 'fr', @@ -65,6 +65,10 @@ const availableLanguages: AvailableLanguageObject = { code: 'sv', display: 'Swedish', }, + 'zh-Hant': { + code: 'zh-Hant', + display: 'Chinese (Traditional)', + }, }; const LanguagePicker: React.FC = () => { @@ -105,20 +109,20 @@ const LanguagePicker: React.FC = () => { leaveTo="transform opacity-0 scale-95" >
-
+