feat(locale): add Thai language (#2980)

This commit is contained in:
Nateetorn Preansri
2024-12-26 16:44:03 +07:00
committed by GitHub
parent b326a14fb0
commit c8cd06e92d
2 changed files with 54 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ export { default as pt } from './pt'
export { default as pt_br } from './pt_br'
export { default as ru } from './ru'
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 zh_hans } from './zh_hans'

53
src/runtime/locale/th.ts Normal file
View File

@@ -0,0 +1,53 @@
import { defineLocale } from '../composables/defineLocale'
export default defineLocale({
name: 'ไทย',
code: 'th',
messages: {
inputMenu: {
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
noData: 'ไม่มีข้อมูล',
create: 'สร้าง "{label}"'
},
calendar: {
prevYear: 'ปีก่อนหน้า',
nextYear: 'ปีถัดไป',
prevMonth: 'เดือนก่อนหน้า',
nextMonth: 'เดือนถัดไป'
},
inputNumber: {
increment: 'เพิ่ม',
decrement: 'ลด'
},
commandPalette: {
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
noData: 'ไม่มีข้อมูล',
close: 'ปิด'
},
selectMenu: {
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
noData: 'ไม่มีข้อมูล',
create: 'สร้าง "{label}"'
},
toast: {
close: 'ปิด'
},
carousel: {
prev: 'ย้อนกลับ',
next: 'ถัดไป',
goto: 'ไปที่ {slide}'
},
modal: {
close: 'ปิด'
},
slideover: {
close: 'ปิด'
},
alert: {
close: 'ปิด'
},
table: {
noData: 'ไม่มีข้อมูล'
}
}
})