Skip to content

Commit

Permalink
feat(locale): add Viet language (#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
HigherOrderLogic authored Dec 26, 2024
1 parent 5550d18 commit ffba108
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/app/components/content/SupportedLanguages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function getEmojiFlag(locale: string): string {
ja: 'jp',
ko: 'kr',
uk: 'ua',
vi: 'vn',
zh: 'cn'
}
Expand Down
1 change: 1 addition & 0 deletions src/runtime/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ export { default as sk } from './sk'
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'
53 changes: 53 additions & 0 deletions src/runtime/locale/vi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { defineLocale } from '../composables/defineLocale'

export default defineLocale({
name: 'Tiếng Việt',
code: 'vi',
messages: {
inputMenu: {
noMatch: 'Không có kết quả phù hợp',
noData: 'Không có dữ liệu',
create: 'Tạo "{label}"'
},
calendar: {
prevYear: 'Năm trước',
nextYear: 'Năm sau',
prevMonth: 'Tháng trước',
nextMonth: 'Tháng sau'
},
inputNumber: {
increment: 'Tăng',
decrement: 'Giảm'
},
commandPalette: {
noMatch: 'Không có kết quả phù hợp',
noData: 'Không có dữ liệu',
close: 'Đóng'
},
selectMenu: {
noMatch: 'Không có kết quả phù hợp',
noData: 'Không có dữ liệu',
create: 'Tạo "{label}"'
},
toast: {
close: 'Đóng'
},
carousel: {
prev: 'Trước',
next: 'Sau',
goto: 'Đi tới ô {slide}'
},
modal: {
close: 'Đóng'
},
slideover: {
close: 'Đóng'
},
alert: {
close: 'Đóng'
},
table: {
noData: 'Không có dữ liệu'
}
}
})

0 comments on commit ffba108

Please sign in to comment.