Add Traditional Chinese translate option

This commit is contained in:
poko 2022-07-14 21:37:11 +08:00
parent 50dc0ef2cb
commit 90130876a3
2 changed files with 3 additions and 1 deletions

View file

@ -21,6 +21,8 @@ const localeText = (locale: string): string => {
return '🇬🇧 English'
case 'zh-CN':
return '🇨🇳 简体中文'
case 'zh-TW':
return '🇹🇼 繁體中文'
default:
return '🇬🇧 English'
}

View file

@ -3,7 +3,7 @@ const path = require('path')
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-CN']
locales: ['en', 'zh-CN', 'zh-TW']
},
localePath: path.resolve('public/locales'),
reloadOnPrerender: process.env.NODE_ENV === 'development',