diff --git a/src/locale/deviceLocales.ts b/src/locale/deviceLocales.ts index 7827fecd3..b9ab8bab2 100644 --- a/src/locale/deviceLocales.ts +++ b/src/locale/deviceLocales.ts @@ -41,17 +41,11 @@ export function getLocales() { } if (typeof locale.languageTag === 'string') { - if ( - locale.languageTag === 'zh-CN' || - locale.languageTag.startsWith('zh-Hans') - ) { + if (locale.languageTag === 'zh-CN') { // Simplified Chinese to zh-Hans-CN locale.languageTag = 'zh-Hans-CN' } - if ( - locale.languageTag === 'zh-TW' || - locale.languageTag.startsWith('zh-Hant') - ) { + if (locale.languageTag === 'zh-TW') { // Traditional Chinese to zh-Hant-TW locale.languageTag = 'zh-Hant-TW' }