refactor/feat: i18n & constant

This commit is contained in:
puriphatt 2024-09-24 11:26:22 +07:00
parent 270deacba7
commit 8fce5ff2df
3 changed files with 60 additions and 2 deletions

View file

@ -73,6 +73,13 @@ export default {
view: 'View {msg}', view: 'View {msg}',
attachment: 'Attachment', attachment: 'Attachment',
about: 'About', about: 'About',
total: 'Total',
discount: 'Discount',
totalAfterDiscount: 'Total after discount',
totalVatExcluded: 'Tax exemption amount',
totalVatIncluded: 'Taxable amount',
vat: 'VAT {msg}',
totalAmount: 'Total amount',
}, },
menu: { menu: {
@ -575,7 +582,7 @@ export default {
quotation: { quotation: {
title: 'Quotation', title: 'Quotation',
customerName: 'Customer Name', customerName: 'Customer Name',
reporter: 'Reporter', actor: 'Actor',
totalPrice: 'Total (Baht)', totalPrice: 'Total (Baht)',
receipt: 'Receipt/Tax Invoice', receipt: 'Receipt/Tax Invoice',
branch: 'Branch that issues the quotation', branch: 'Branch that issues the quotation',
@ -583,6 +590,22 @@ export default {
newCustomer: 'New Customer', newCustomer: 'New Customer',
employeeList: 'Employee List', employeeList: 'Employee List',
employee: 'Employee', employee: 'Employee',
workName: 'Work Name',
contactName: 'Contact Name',
documentReceivePoint: 'Document Drop-Off Point"',
dueDate: 'Quotation Due Date',
paymentCondition: 'Payment Terms',
payType: 'Payment Methods',
bank: 'Select Payment Account',
paySplitCount: 'Number of Installments',
payTotal: 'Total {msg}',
summary: 'Total Summary',
periodNo: 'Installment No."',
amount: 'Amount',
payDueDate: 'Pay Due Date',
callDueDate: 'Call Due Date',
type: { type: {
all: 'All', all: 'All',
fullAmountCash: 'Full Amount Cash', fullAmountCash: 'Full Amount Cash',
@ -677,6 +700,7 @@ export default {
validateError: 'Validate Error', validateError: 'Validate Error',
codeMisMatch: 'Code Mismatch', codeMisMatch: 'Code Mismatch',
userExists: 'User already exits.', userExists: 'User already exits.',
crossCompanyNotPermit: 'Cannot move between different headoffice',
}, },
}, },
}; };

View file

@ -73,6 +73,13 @@ export default {
view: 'ดู{msg}', view: 'ดู{msg}',
attachment: 'เอกสาร', attachment: 'เอกสาร',
about: 'เกี่ยวกับ', about: 'เกี่ยวกับ',
total: 'ยอดรวม',
discount: 'ส่วนลด',
totalAfterDiscount: 'จำนวนเงินหลังหักส่วนลด',
totalVatExcluded: 'จำนวนเงินยกเว้นภาษี',
totalVatIncluded: 'จำนวนเงินที่คำนวณภาษี',
vat: 'ภาษีมูลค่าเพิ่ม {msg}',
totalAmount: 'จำนวนเงินรวมทั้งสิ้น',
}, },
menu: { menu: {
@ -573,7 +580,7 @@ export default {
quotation: { quotation: {
title: 'ใบเสนอราคา', title: 'ใบเสนอราคา',
customerName: 'ชื่อลูกค้า', customerName: 'ชื่อลูกค้า',
reporter: 'ผู้ที่ทำรายงาน', actor: 'ผู้ที่ทำรายงาน',
totalPrice: 'ยอดรวมสุทธิ(บาท)', totalPrice: 'ยอดรวมสุทธิ(บาท)',
receipt: 'ใบเสร็จ/กำกับภาษี', receipt: 'ใบเสร็จ/กำกับภาษี',
branch: 'สาขาที่ออกใบเสนอราคา', branch: 'สาขาที่ออกใบเสนอราคา',
@ -581,6 +588,22 @@ export default {
newCustomer: 'ลูกค้าใหม่', newCustomer: 'ลูกค้าใหม่',
employeeList: 'รายชื่อแรงงาน', employeeList: 'รายชื่อแรงงาน',
employee: 'แรงงาน', employee: 'แรงงาน',
workName: 'ชื่องาน',
contactName: 'ชื่อผู้ติดต่อ',
documentReceivePoint: 'จุดรับเอกสาร',
dueDate: 'วันครบกำหนดใบเสนอราคา',
paymentCondition: 'เงื่อนไขการชำระเงิน',
payType: 'วิธีการชำระเงิน',
bank: 'เลือกบัญชีชำระเงิน',
paySplitCount: 'จำนวนงวด',
payTotal: 'ยอดชำระ {msg}',
summary: 'สรุปยอดทั้งหมด',
periodNo: 'งวดที่',
amount: 'จำนวนเงิน',
payDueDate: 'วันที่กำหนดจ่าย',
callDueDate: 'วันที่ครบกำหนดเรียก',
type: { type: {
all: 'ทั้งหมด', all: 'ทั้งหมด',
fullAmountCash: 'เงินสดเต็มจำนวน', fullAmountCash: 'เงินสดเต็มจำนวน',
@ -672,6 +695,7 @@ export default {
validateError: 'เกิดข้อผิดพลาดจากการตรวจสอบ', validateError: 'เกิดข้อผิดพลาดจากการตรวจสอบ',
codeMisMatch: 'รหัสไม่ตรงกัน', codeMisMatch: 'รหัสไม่ตรงกัน',
userExists: 'ชื่อผู้ใช้นี้มีอยู่ในระบบอยู่แล้ว', userExists: 'ชื่อผู้ใช้นี้มีอยู่ในระบบอยู่แล้ว',
crossCompanyNotPermit: 'ไม่สามารถดำเนินการระหว่างสำนักงานใหญ่อื่นได้',
}, },
}, },
}; };

View file

@ -18,3 +18,13 @@ export const productTreeDecoration = [
fg: 'var(--teal-10)', fg: 'var(--teal-10)',
}, },
]; ];
export const pageTabs = [
'all',
'fullAmountCash',
'installmentsCash',
'fullAmountBill',
'installmentsBill',
];
export const fieldSelectedOption = [{ label: 'general.type', value: 'value' }];