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

View File

@@ -26,5 +26,5 @@ export { default as th } from './th'
export { default as tr } from './tr'
export { default as uk } from './uk'
export { default as vi } from './vi'
export { default as zh_hans } from './zh_hans'
export { default as zh_hant } from './zh_hant'
export { default as zh_cn } from './zh_cn'
export { default as zh_tw } from './zh_tw'

View File

@@ -2,7 +2,7 @@ import { defineLocale } from '../composables/defineLocale'
export default defineLocale({
name: '简体中文',
code: 'zh-Hans',
code: 'zh-CN',
messages: {
inputMenu: {
noMatch: '没有匹配的数据',

View File

@@ -2,7 +2,7 @@ import { defineLocale } from '../composables/defineLocale'
export default defineLocale({
name: '繁體中文',
code: 'zh-Hant',
code: 'zh-TW',
messages: {
inputMenu: {
noMatch: '沒有相符的資料',