Skip to content

Commit

Permalink
fix(locale): remove emoji fallback for Chinese
Browse files Browse the repository at this point in the history
  • Loading branch information
toto6038 committed Jan 17, 2025
1 parent f0297e0 commit 1cf179d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/app/components/content/SupportedLanguages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,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
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,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'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineLocale } from '../composables/defineLocale'

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

export default defineLocale({
name: '繁體中文',
code: 'zh-Hant',
code: 'zh-TW',
messages: {
inputMenu: {
noMatch: '沒有相符的資料',
Expand Down

0 comments on commit 1cf179d

Please sign in to comment.