refactor: handle i18n #236
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 7s
This commit is contained in:
parent
21fc2d5d96
commit
8e65a1c5a2
3 changed files with 5 additions and 3 deletions
|
|
@ -161,6 +161,7 @@ export default {
|
||||||
documentStatus: 'Document Status',
|
documentStatus: 'Document Status',
|
||||||
advanceSearch: 'Advance Search',
|
advanceSearch: 'Advance Search',
|
||||||
totalPeople: '{meg} people',
|
totalPeople: '{meg} people',
|
||||||
|
price: 'Price {price} Baht',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,7 @@ export default {
|
||||||
documentStatus: 'สถานะเอกสาร',
|
documentStatus: 'สถานะเอกสาร',
|
||||||
advanceSearch: 'ค้นหาขั้นสูง',
|
advanceSearch: 'ค้นหาขั้นสูง',
|
||||||
totalPeople: '{meg} คน',
|
totalPeople: '{meg} คน',
|
||||||
|
price: 'ราคา {price} บาท',
|
||||||
},
|
},
|
||||||
|
|
||||||
menu: {
|
menu: {
|
||||||
|
|
|
||||||
|
|
@ -75,13 +75,13 @@ const templates = {
|
||||||
const branch = v.request.quotation.customerBranch;
|
const branch = v.request.quotation.customerBranch;
|
||||||
return (
|
return (
|
||||||
` ${i + 1}. ` +
|
` ${i + 1}. ` +
|
||||||
` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : branch.registerName}_` +
|
` ${v.request.code}_${branch.customer.customerType === 'PERS' ? `${branch.namePrefix}. ${branch.firstNameEN} ${branch.lastNameEN} `.toUpperCase() : i18n.global.locale.value == 'tha' ? branch.registerName : branch.registerNameEN}_` +
|
||||||
`${employee.namePrefix}. ${employee.firstNameEN} ${employee.lastNameEN} `.toUpperCase() +
|
`${employee.namePrefix}. ${employee.firstNameEN} ${employee.lastNameEN} `.toUpperCase() +
|
||||||
`${!!v.failedType && v.failedType !== 'other' ? `${i18n.global.t(`taskOrder.${v.failedType}`)}` : !!v.failedComment ? v.failedComment : ''}`
|
`${!!v.failedType && v.failedType !== 'other' ? `${i18n.global.t(`taskOrder.${v.failedType}`)}` : !!v.failedComment ? v.failedComment : ''}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
return [
|
return [
|
||||||
`- ${item.product.name} ราคา ${price} บาท`,
|
`- ${item.product.name} ${i18n.global.t('price', { price: price })} `,
|
||||||
'',
|
'',
|
||||||
...list,
|
...list,
|
||||||
'',
|
'',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue