From a03e42e0d99a69fce8635b91fb1931ba1f1bc0b2 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Fri, 12 Mar 2021 22:53:56 -0800 Subject: [PATCH] Added font for Chinese traditional. --- components/settings/LanguageButton.js | 8 +++++++- pages/_app.js | 1 + styles/index.css | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/settings/LanguageButton.js b/components/settings/LanguageButton.js index 14a1aaf1..1a9bd33b 100644 --- a/components/settings/LanguageButton.js +++ b/components/settings/LanguageButton.js @@ -16,12 +16,18 @@ export default function LanguageButton() { return ( <> - {(locale === 'zh-CN' || locale === 'zh-TW') && ( + {locale === 'zh-CN' && ( )} + {locale === 'zh-TW' && ( + + )} {locale === 'ja-JP' && ( + diff --git a/styles/index.css b/styles/index.css index de6f9ce8..a15ce562 100644 --- a/styles/index.css +++ b/styles/index.css @@ -22,7 +22,7 @@ body { } .zh-TW { - font-family: 'Noto Sans SC', sans-serif !important; + font-family: 'Noto Sans TC', sans-serif !important; } .ja-JP {