mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 05:32:01 +00:00
Add Traditional Chinese translate option
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user