From 68e1abb4cb964309812b34cbfa50045d73df6d48 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 4 Apr 2025 11:08:36 +0700 Subject: [PATCH] refactor: edit i18n --- .../03_customer-management/FormEmployeeOther.vue | 8 ++++---- src/i18n/eng.ts | 1 + src/i18n/tha.ts | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/03_customer-management/FormEmployeeOther.vue b/src/components/03_customer-management/FormEmployeeOther.vue index 3e9a4a89..f2c32c63 100644 --- a/src/components/03_customer-management/FormEmployeeOther.vue +++ b/src/components/03_customer-management/FormEmployeeOther.vue @@ -106,7 +106,7 @@ const employeeOther = defineModel('employeeOther'); :readonly="readonly || employeeOther.statusSave" hide-bottom-space class="col-md-3 col-6" - :label="$t('form.firstName')" + :label="$t('general.nativeLanguage', { msg: $t('form.firstName') })" :model-value="employeeOther.fatherFirstName" @update:model-value=" (v) => @@ -122,7 +122,7 @@ const employeeOther = defineModel('employeeOther'); :readonly="readonly || employeeOther.statusSave" hide-bottom-space class="col-md-3 col-6" - :label="$t('form.lastName')" + :label="$t('general.nativeLanguage', { msg: $t('form.lastName') })" :model-value="employeeOther.fatherLastName" @update:model-value=" (v) => @@ -177,7 +177,7 @@ const employeeOther = defineModel('employeeOther'); :readonly="readonly || employeeOther.statusSave" hide-bottom-space class="col-md-3 col-6" - :label="$t('form.firstName')" + :label="$t('general.nativeLanguage', { msg: $t('form.firstName') })" :model-value="employeeOther.motherFirstName" @update:model-value=" (v) => @@ -193,7 +193,7 @@ const employeeOther = defineModel('employeeOther'); :readonly="readonly || employeeOther.statusSave" hide-bottom-space class="col-md-3 col-6" - :label="$t('form.lastName')" + :label="$t('general.nativeLanguage', { msg: $t('form.lastName') })" :model-value="employeeOther.motherLastName" @update:model-value=" (v) => diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index d3ddf4a4..ba87cc2d 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -153,6 +153,7 @@ export default { tableOfContent: 'Table of Contents', draw: 'Draw', newUpload: 'New Upload', + nativeLanguage: '{msg} Native Language', }, menu: { diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 5978bb7e..afdcf8f8 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -153,6 +153,7 @@ export default { tableOfContent: 'สารบัญ', draw: 'วาด', newUpload: 'อัปโหลดใหม่', + nativeLanguage: '{msg} ภาษาต้นทาง', }, menu: {