mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
Add Traditional Chinese translate option
This commit is contained in:
@@ -21,6 +21,8 @@ const localeText = (locale: string): string => {
|
|||||||
return '🇬🇧 English'
|
return '🇬🇧 English'
|
||||||
case 'zh-CN':
|
case 'zh-CN':
|
||||||
return '🇨🇳 简体中文'
|
return '🇨🇳 简体中文'
|
||||||
|
case 'zh-TW':
|
||||||
|
return '🇹🇼 繁體中文'
|
||||||
default:
|
default:
|
||||||
return '🇬🇧 English'
|
return '🇬🇧 English'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const path = require('path')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
locales: ['en', 'zh-CN']
|
locales: ['en', 'zh-CN', 'zh-TW']
|
||||||
},
|
},
|
||||||
localePath: path.resolve('public/locales'),
|
localePath: path.resolve('public/locales'),
|
||||||
reloadOnPrerender: process.env.NODE_ENV === 'development',
|
reloadOnPrerender: process.env.NODE_ENV === 'development',
|
||||||
|
|||||||
Reference in New Issue
Block a user