From c8cd06e92dab208271ab7b7f6806793eea1e8969 Mon Sep 17 00:00:00 2001 From: Nateetorn Preansri <35740974+nttps@users.noreply.github.com> Date: Thu, 26 Dec 2024 16:44:03 +0700 Subject: [PATCH] feat(locale): add Thai language (#2980) --- src/runtime/locale/index.ts | 1 + src/runtime/locale/th.ts | 53 +++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/runtime/locale/th.ts diff --git a/src/runtime/locale/index.ts b/src/runtime/locale/index.ts index 8ee712ff..6a49c939 100644 --- a/src/runtime/locale/index.ts +++ b/src/runtime/locale/index.ts @@ -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' diff --git a/src/runtime/locale/th.ts b/src/runtime/locale/th.ts new file mode 100644 index 00000000..e18b1df1 --- /dev/null +++ b/src/runtime/locale/th.ts @@ -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: 'ไม่มีข้อมูล' + } + } +})