feat: add i18n

This commit is contained in:
Methapon Metanipat 2024-08-28 15:07:31 +07:00
parent 52c18e6a6c
commit 6c30e4412d
5 changed files with 48 additions and 18 deletions

View file

@ -3120,7 +3120,11 @@ const emptyCreateDialog = ref(false);
const _group = c.group || 'other';
if (!a[_group]) {
a[_group] = {
label: _group,
label: $t(
uploadFileListEmployee.find(
(v) => v.value === _group,
)?.label || _group,
),
file: [
{
label:

View file

@ -49,43 +49,43 @@ export const uploadFileListEmployee: {
value: string;
}[] = [
{
label: 'ข้อมูลหนังสือการเดินทาง',
value: 'travelBook',
label: 'customerEmployee.fileType.passport',
value: 'passport',
},
{
label: 'ข้อมูลการตรวจลงตรา',
value: 'checkList',
label: 'customerEmployee.fileType.visa',
value: 'visa',
},
{
label: 'ตม.6',
label: 'customerEmployee.fileType.tm6',
value: 'tm6',
},
{
label: 'ใบอนุญาตทำงาน',
value: 'license',
label: 'customerEmployee.fileType.workPermit',
value: 'workPermit',
},
{
label: 'แบบแจ้งการจ้างคนต่างด้าวทำงาน',
value: 'noticeJob',
label: 'customerEmployee.fileType.noticeJobEmployment',
value: 'noticeJobEmployment',
},
{
label: 'แบบแจ้งเข้าทำงานของคนต่างด้าว',
value: 'noticeJobOther',
label: 'customerEmployee.fileType.noticeJobEntry',
value: 'noticeJobEntry',
},
{
label: 'ใบคัดประวัติระบบจัดหางาน',
label: 'customerEmployee.fileType.historyJob',
value: 'historyJob',
},
{
label: 'ใบตอบรับการแจ้งเกี่ยวกับการทำงานของคนต่างด้าว',
label: 'customerEmployee.fileType.acceptJob',
value: 'acceptJob',
},
{
label: 'ใบเสร็จรับเงิน',
label: 'customerEmployee.fileType.receipt',
value: 'receipt',
},
{
label: 'อื่นๆ',
label: 'customerEmployee.fileType.other',
value: 'other',
},
];