diff options
Diffstat (limited to 'modern/src/common/components/LocalizationProvider.js')
-rw-r--r-- | modern/src/common/components/LocalizationProvider.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/common/components/LocalizationProvider.js b/modern/src/common/components/LocalizationProvider.js index e015ccce..85a73e6b 100644 --- a/modern/src/common/components/LocalizationProvider.js +++ b/modern/src/common/components/LocalizationProvider.js @@ -154,7 +154,9 @@ export const LocalizationProvider = ({ children }) => { useEffect(() => { let selected; - if (language.length > 2) { + if (language === 'zh') { + selected = 'zh-cn'; + } else if (language.length > 2) { selected = `${language.slice(0, 2)}-${language.slice(-2).toLowerCase()}`; } else { selected = language; |