Add Traditional Chinese translate option
This commit is contained in:
parent
50dc0ef2cb
commit
90130876a3
|
@ -21,6 +21,8 @@ const localeText = (locale: string): string => {
|
|||
return '🇬🇧 English'
|
||||
case 'zh-CN':
|
||||
return '🇨🇳 简体中文'
|
||||
case 'zh-TW':
|
||||
return '🇹🇼 繁體中文'
|
||||
default:
|
||||
return '🇬🇧 English'
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue