From 2aa397678dfc351ad84bf911d4e1d2bab13b4e11 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 6 Jan 2025 16:44:27 +0700 Subject: [PATCH] fix: update i18n warning messages for unsaved actions --- src/i18n/eng.ts | 4 ++-- src/i18n/tha.ts | 2 +- src/stores/utils/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index 6bfd4f10..22487124 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -1002,8 +1002,8 @@ export default { 'Employee is under 15 years old, cannot record information.', youngWorker18: 'Employees under the age of 18, do you wish to proceed?', confirmLogout: 'Do you want to Logout?', - headquartersNotEstablished: 'Headoffice not established', - warningClose: 'Incomplte edit data, Do you want to close?', + headquartersNotEstablished: 'Head office not established', + warningClose: 'There are unsaved actions. Do you want to close?', close: 'Do you want to close this window?', confirmChangeStatus: 'Do you want to change your status?', confirmSavingStatus: diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 3fa91692..3fdcc190 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -989,7 +989,7 @@ export default { youngWorker18: 'ลูกจ้างอายุต่ำกว่า 18 ปี คุณต้องการจะดำเนินการต่อหรือไม่', confirmLogout: 'คุณต้องการออกจากระบบใช่หรือไม่', headquartersNotEstablished: 'ยังไม่ได้สร้างสำนักงานใหญ่', - warningClose: 'มีการแก้ไขที่ยังไม่ได้บันทึก คุณต้องการปิดใช่หรือไม่', + warningClose: 'มีการดำเนินการที่ยังไม่ได้บันทึก คุณต้องการปิดใช่หรือไม่', warningSelectDeliveryStaff: 'คุณยังไม่ได้เลือกพนักงานส่งเอกสาร', close: 'คุณต้องการปิดหน้าต่างนี้ใช่หรือไม่', confirmChangeStatus: 'คุณต้องการเปลี่ยนสถานะใช่หรือไม่', diff --git a/src/stores/utils/index.ts b/src/stores/utils/index.ts index a2f7443e..98d1ab2d 100644 --- a/src/stores/utils/index.ts +++ b/src/stores/utils/index.ts @@ -61,7 +61,7 @@ export function dialogWarningClose( color: 'warning', icon: 'mdi-alert', title: t('form.warning.title'), - actionText: t('dialog.action.ok'), + actionText: t('dialog.action.close'), message: opts.message || t('dialog.message.warningClose'), action: async () => { if (opts.action) opts.action();