refactor: add i18n

This commit is contained in:
Thanaphon Frappet 2024-10-17 15:51:56 +07:00
parent 369a7a406d
commit 59674d1295
3 changed files with 29 additions and 9 deletions

View file

@ -765,4 +765,14 @@ export default {
invalideData: 'The information is incorrect. Please try again later.',
},
},
preview: {
productList: 'Product List',
rank: 'Rank',
productCode: 'Product Code',
pricePerUnit: 'Price per Unit',
discount: 'Discount',
vat: 'VAT',
value: 'Value',
},
};

View file

@ -757,4 +757,14 @@ export default {
invalideData: 'ข้อมูลไม่ถูกต้อง กรุณาตรวจสอบใหม่อีกครั้ง',
},
},
peview: {
productList: 'รายการสินค้า',
rank: 'อันดับ',
productCode: 'รหัสสินค้า',
pricePerUnit: 'ราคาต่อหน่วย',
discount: 'ส่วนลด',
vat: 'ภาษี',
value: 'มูลค่า',
},
};

View file

@ -95,20 +95,20 @@ watch(elements, () => {
border-bottom: 2px solid var(--orange-5);
"
>
รายการสนค
{{ $t('peview.productList') }}
</span>
<table ref="elements" class="q-mb-sm" cellpadding="0" style="width: 100%">
<tbody>
<tr>
<th>นด</th>
<th>รหสสนค</th>
<th>รายละเอยด</th>
<th>จำนวน</th>
<th>ราคาตอหนวย</th>
<th>วนสด</th>
<th>ภาษ</th>
<th>ลค</th>
<th>{{ $t('peview.rank') }}</th>
<th>{{ $t('peview.productCode') }}</th>
<th>{{ $t('general.detail') }}</th>
<th>{{ $t('general.amount') }}</th>
<th>{{ $t('peview.pric') }}</th>
<th>{{ $t('peview.discount') }}</th>
<th>{{ $t('peview.vat') }}</th>
<th>{{ $t('peview.value') }}</th>
</tr>
<tr class="color-tr" v-for="(_, i) in chunk">
<td class="text-center">{{ i + 1 }}</td>