fix(locale): remove emoji fallback for Chinese (#3134)

This commit is contained in:
Howard Guo
2025-01-25 01:37:33 +08:00
committed by GitHub
parent ac86ee01b9
commit 1a95104631
4 changed files with 5 additions and 6 deletions

View File

@@ -22,8 +22,7 @@ function getEmojiFlag(locale: string): string {
nb: 'no',
sv: 'se',
uk: 'ua',
vi: 'vn',
zh: 'cn'
vi: 'vn'
}
const baseLanguage = locale.split('-')[0]?.toLowerCase() || locale