From ac241a8e317181bf76d75d930f81d62da31495dd Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 20 Sep 2024 11:45:58 +0700 Subject: [PATCH] refactor: add i18n --- src/i18n/eng/index.ts | 26 +++++++++++++++++++++++++- src/i18n/tha/index.ts | 26 +++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts index 94feabf8..e12e6d03 100644 --- a/src/i18n/eng/index.ts +++ b/src/i18n/eng/index.ts @@ -48,7 +48,7 @@ export default { selectAll: 'Select All', additional: 'Additional', editImage: 'Edit Image', - upload: 'Upload', + upload: 'Upload{msg}', baseOnDevice: 'Base on Device', clickToCreate: 'Click to create', age: 'Age', @@ -68,6 +68,11 @@ export default { document: 'Document', uploadDate: 'Upload Date', information: '{msg} Information', + itemNo: '{msg} No.', + example: 'Example', + view: 'View {msg}', + attachment: 'Attachment', + about: 'About', }, menu: { @@ -553,6 +558,24 @@ export default { }, }, + quotation: { + title: 'Quotation', + customerName: 'Customer Name', + reporter: 'Reporter', + totalPrice: 'Total (Baht)', + receipt: 'Receipt/Tax Invoice', + branch: 'Branch that issues the quotation', + customer: 'Customer', + newCustomer: 'New Customer', + type: { + all: 'All', + fullAmountCash: 'Full Amount Cash', + installmentsCash: 'Installments Cash', + fullAmountBill: 'Full Amount Bill', + installmentsBill: 'Installments Bill', + }, + }, + dialog: { title: { incompleteDataEntry: 'Incomplete Data Entry', @@ -562,6 +585,7 @@ export default { confirmLogout: 'Confirm Logout', }, message: { + beingUse: '"{msg}" is being used.', incompleteDataEntry: 'Incomplete data entry on {tap} page', confirmChangeStatusOn: 'Do you want to open?', confirmChangeStatusOff: 'Do you want to close?', diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index 1da30055..fc092749 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -48,7 +48,7 @@ export default { selectAll: 'เลือกทั้งหมด', additional: 'เพิ่มเติม', editImage: 'แก้ไขรูป', - upload: 'อัปโหลด', + upload: 'อัปโหลด{msg}', baseOnDevice: 'สีตามอุปกรณ์', clickToCreate: 'กดเพื่อสร้าง', age: 'อายุ', @@ -68,6 +68,11 @@ export default { document: 'ชื่อเอกสาร', uploadDate: 'วันที่อัปโหลด', information: 'ข้อมูล{msg}', + itemNo: 'เลขที่{msg}', + example: 'ตัวอย่าง', + view: 'ดู{msg}', + attachment: 'เอกสาร', + about: 'เกี่ยวกับ', }, menu: { @@ -551,6 +556,24 @@ export default { }, }, + quotation: { + title: 'ใบเสนอราคา', + customerName: 'ชื่อลูกค้า', + reporter: 'ผู้ที่ทำรายงาน', + totalPrice: 'ยอดรวมสุทธิ(บาท)', + receipt: 'ใบเสร็จ/กำกับภาษี', + branch: 'สาขาที่ออกใบเสนอราคา', + customer: 'ลูกค้า', + newCustomer: 'ลูกค้าใหม่', + type: { + all: 'ทั้งหมด', + fullAmountCash: 'เงินสดเต็มจำนวน', + installmentsCash: 'เงินสดแบ่งจ่าย', + fullAmountBill: 'ใบเรียกเก็บเงินเต็มจำนวน', + installmentsBill: 'ใบเรียกเก็บเงินแบ่งจ่าย', + }, + }, + dialog: { title: { incompleteDataEntry: 'กรอกข้อมูลไม่ครบ', @@ -560,6 +583,7 @@ export default { confirmLogout: 'ยืนยันการออกจากระบบ', }, message: { + beingUse: '"{msg}" มีการใช้งานอยู่', incompleteDataEntry: 'กรอกข้อมูลไม่ครบในหน้า {tap}', confirmChangeStatusOn: 'คุณต้องการเปิดใช่หรือไม่', confirmChangeStatusOff: 'คุณต้องการปิดใช่หรือไม่',