@@ -412,8 +413,7 @@ watch(districtId, fetchSubDistrict);
? []
: [
(val) =>
- (val && val.length > 0) ||
- $t('formDialogInputAddressValidate'),
+ (val && val.length > 0) || $t('form.error.required'),
]
"
/>
@@ -426,17 +426,13 @@ watch(districtId, fetchSubDistrict);
:readonly="readonly || sameWithEmployer"
outlined
hide-bottom-space
- :label="$t('address')"
+ :label="$t('form.address', { suffix: '(EN)' })"
class="col-12"
v-model="addressEN"
:rules="
disabledRule
? []
- : [
- (val) =>
- (val && val.length > 0) ||
- $t('formDialogInputAddressValidate'),
- ]
+ : [(val) => (val && val.length > 0) || $t('form.error.required')]
"
/>
(val && val.length > 0) ||
- $t('formDialogInputProvinceValidate'),
+ $t('form.error.selectField', {
+ field: $t('form.province'),
+ }),
]
"
@update:model-value="districtId = subDistrictId = zipCode = null"
@@ -476,7 +474,7 @@ watch(districtId, fetchSubDistrict);
- {{ $t('noResults') }}
+ {{ $t('general.noData') }}
@@ -498,7 +496,7 @@ watch(districtId, fetchSubDistrict);
option-label="nameEN"
class="col-md-3 col-6"
:dense="dense"
- :label="$t('district')"
+ :label="$t('form.district')"
:options="districtOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
@@ -509,7 +507,9 @@ watch(districtId, fetchSubDistrict);
: [
(val) =>
(val && val.length > 0) ||
- $t('formDialogInputDistrictValidate'),
+ $t('form.error.selectField', {
+ field: $t('form.district'),
+ }),
]
"
@update:model-value="subDistrictId = zipCode = null"
@@ -518,7 +518,7 @@ watch(districtId, fetchSubDistrict);
- {{ $t('noResults') }}
+ {{ $t('general.noData') }}
@@ -540,7 +540,7 @@ watch(districtId, fetchSubDistrict);
class="col-md-3 col-6"
v-model="subDistrictId"
:dense="dense"
- :label="$t('subDistrict')"
+ :label="$t('form.subDistrict')"
:options="subDistrictOptions"
:readonly="readonly || sameWithEmployer"
:hide-dropdown-icon="readonly || sameWithEmployer"
@@ -551,7 +551,9 @@ watch(districtId, fetchSubDistrict);
: [
(val) =>
(val && val.length > 0) ||
- $t('formDialogInputSubDistrictValidate'),
+ $t('form.error.selectField', {
+ field: $t('form.subDistrict'),
+ }),
]
"
@update:model-value="(v: string) => selectSubDistrict(v)"
@@ -560,7 +562,7 @@ watch(districtId, fetchSubDistrict);
- {{ $t('noResults') }}
+ {{ $t('general.noData') }}
@@ -574,7 +576,7 @@ watch(districtId, fetchSubDistrict);
readonly
:disable="!readonly"
zip="zip-en"
- :label="$t('zipCode')"
+ :label="$t('form.zipCode')"
class="col-md-2 col-6"
:model-value="
addrOptions.subDistrictOps
diff --git a/src/components/shared/DatePicker.vue b/src/components/shared/DatePicker.vue
index 3c3d6dfd..2c03a712 100644
--- a/src/components/shared/DatePicker.vue
+++ b/src/components/shared/DatePicker.vue
@@ -62,16 +62,16 @@ function valueUpdate(value: string) {
:disabled-dates="disabledDates"
:teleport="true"
:dark="$q.dark.isActive"
- :locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
+ :locale="$i18n.locale === 'tha' ? 'th' : 'en'"
:enableTimePicker="false"
v-model="model"
class="col-2"
>
- {{ $i18n.locale === 'th-th' ? value + 543 : value }}
+ {{ $i18n.locale === 'tha' ? value + 543 : value }}
- {{ $i18n.locale === 'th-th' ? value + 543 : value }}
+ {{ $i18n.locale === 'tha' ? value + 543 : value }}
- {{ $t('viewDetail') }}
+ {{ $t('general.viewDetail') }}
- {{ $t('edit') }}
+ {{ $t('general.edit') }}
- {{ $t('delete') }}
+ {{ $t('general.delete') }}
@@ -151,9 +151,7 @@ defineEmits<{
@click="$emit('toggleStatus', disabled === false)"
/>
- {{
- !disabled ? $t('switchOnLabel') : $t('switchOffLabel')
- }}
+ {{ !disabled ? $t('general.open') : $t('general.close') }}
diff --git a/src/i18n/en-US/address.ts b/src/i18n/en-US/address.ts
deleted file mode 100644
index 2f531b9c..00000000
--- a/src/i18n/en-US/address.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export default {
- address: 'Address',
- province: 'Province',
- district: 'District',
- subDistrict: 'Sub-district',
- zipCode: 'Zip Code',
-};
diff --git a/src/i18n/en-US/alert-dialog.ts b/src/i18n/en-US/alert-dialog.ts
deleted file mode 100644
index 43f189f6..00000000
--- a/src/i18n/en-US/alert-dialog.ts
+++ /dev/null
@@ -1,89 +0,0 @@
-export default {
- warning: 'Warning',
- warningForgetInput: 'You have incomplete information.',
- warningClose:
- "You haven't saved your data. Do you want to close this window?",
-
- errorOccurred: 'An error occurred.',
-
- confirmLogoutTitle: 'Confirm Logout',
- confirmLogoutMessage: 'Do you want to log out?',
-
- confirmChangeStatusTitle: 'Confirm Status Change',
- confirmChangeStatusOnMessage: 'Do you want to open?',
- confirmChangeStatusOffMessage: 'Do you want to close?',
-
- // Backend
- productGroupNotFound: 'Product group cannot be found.',
- productGroupInUsed: 'Product group is in used.',
-
- productNotFound: 'Product cannot be found.',
- productInUsed: 'Product is in used.',
-
- productTypeNotFound: 'Product type cannot be found.',
- productGroupAssociatedBadReq: 'Product group associated cannot be found.',
- productTypeInUsed: 'Product type is in used.',
- productGroupBadReq: 'Product group cannot be found.',
-
- serviceNotFound: 'Service cannot be found.',
- someProductBadReq: 'Some product not found.',
- serviceInUsed: 'Service is in used.',
-
- workNotFound: 'Work cannot be found.',
- workInUsed: 'Work is in used.',
-
- branchContactNotFound: 'Branch contact cannot be found.',
- branchBadReq: 'Branch cannot be found.',
- branchNotFound: 'Branch cannot be found.',
-
- cantMakeHQAndBranchSameTime:
- 'Cannot make this as headquaters and branch at the same time.',
- branchInUsed: 'Branch is in used.',
- oneOrMoreUserBadReq: 'One or more user cannot be found.',
- oneOrMoreBranchBadReq: 'One or more branch cannot be found.',
-
- customerBranchNotFound: 'Customer branch cannot be found.',
- customerBranchInUsed: 'Customer branch is in used.',
-
- customerNotFound: 'Customer cannot be found.',
- customerInUsed: 'Customer is in used.',
- oneOrMoreBranchMissing: 'One or more branch cannot be delete and is missing.',
-
- employeeCheckupNotFound: 'Employee checkup cannot be found.',
- provinceNotFound: 'Province cannot be found.',
- employeeNotFound: 'Employee cannot be found.',
- employeeBadReq: 'Employee cannot be found.',
- employeeInUsed: 'Employee is in used.',
-
- someProvinceNotFound: 'Some province cannot be found.',
- employeeOtherNotFound: 'Employee other info cannot be found.',
-
- employeeWorkNotFound: 'Employee work cannot be found.',
-
- parentMenuBadReq: 'Parent menu not found.',
- menuNotFound: 'Menu cannot be found.',
- menuBadReq: 'Menu cannot be found.',
- menuComponentNotFound: 'Menu component cannot be found.',
- roleMenuNotFound: 'Role menu cannot be found.',
-
- userNotFound: 'User cannot be found.',
- userInUsed: 'User is in used.',
-
- unknowHowToVerify: 'Unknown how to verify identity.',
- noPermission:
- 'You do not have permission to access or perform with this resource.',
- noPermissionToAccess:
- 'You do not have permission to access or perform with this resource.',
-
- relationProvinceNotFound: 'Province cannot be found.',
- relationDistrictNotFound: 'District cannot be found.',
- relationSubDistrictNotFound: 'Sub-district cannot be found.',
-
- relationHQNotFound: 'Headquarters cannot be found.',
-
- relationCustomerNotFound: 'Customer cannot be found.',
-
- relationCustomerBranchNotFound: 'Customer Branch cannot be found.',
-
- sameBranchCodeExists: 'This Head Office Abbreviation is already in use.',
-};
diff --git a/src/i18n/en-US/bank.ts b/src/i18n/en-US/bank.ts
deleted file mode 100644
index b2d2d1ac..00000000
--- a/src/i18n/en-US/bank.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- accountNumber: 'Account Number',
- bankBranch: 'Bank Branch',
- accountName: 'Account Name',
- bankType: 'Bank Type',
- accountStatus: 'Account Status ',
- bankBookNo: 'Bank Book',
-};
diff --git a/src/i18n/en-US/branch.ts b/src/i18n/en-US/branch.ts
deleted file mode 100644
index 599e4e1c..00000000
--- a/src/i18n/en-US/branch.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-export default {
- branchManagementCaption: 'Manage All Branch',
- branchInHQ: 'Branch within the main office',
-
- office: 'Office',
- branchLabel: 'Branch',
- branchHQLabel: 'Headquarters',
- branchName: 'Branch Name',
- branchAdd: 'Add Branch / Head Office',
- branchManagement: 'Branch Management',
- branchNoMainOfficeYet: 'No head office yet?',
- branchClickToCreateMainOffice: 'Click "+" to create head office.',
-
- totalEmployee: 'Total Employee',
-
- branchLabelCode: 'Branch Code',
- branchLabelName: 'Branch Name',
- branchLabelTel: 'Branch Telephone No',
- branchLabelAddress: 'Branch Address',
- branchLabelType: 'Branch Type',
- branchLabelStatus: 'Branch Status',
-
- registeredBranch: 'Registered Branch',
-
- branchStatTitle: 'Summary data of branch',
-
- branchAdminTitle: 'Branch Admin',
- branchAdminNone: 'No admin found',
-};
diff --git a/src/i18n/en-US/customer-main-page.ts b/src/i18n/en-US/customer-main-page.ts
deleted file mode 100644
index 864536e8..00000000
--- a/src/i18n/en-US/customer-main-page.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-export default {
- customerManagement: 'Customers Management',
- customerManagementCaption: 'Manage All Customer',
-
- customerEmployerTooltipTitle: 'No employer data yet',
- customerEmployeeTooltipTitle: 'No employee data yet',
- customerEmployerTooltipCaption: 'Click + to add an employer',
- customerEmployeeTooltipCaption: 'Click + to add an employee',
- customerEmployerAdd: 'Add employer',
- customerEmployeeAdd: 'Add employee',
-
- nameEmployee: 'Employee',
-
- EMPLOYER: 'Employer',
- EMPLOYEE: 'Employee',
- customerEmployerStatTitle: 'Employer data summary',
- customerEmployeeStatTitle: 'Employee data summary',
-
- customerCardUserType: 'Employer type',
- customerLegalEntity: 'Legal entity',
- customerNaturalPerson: 'Natural person',
- businessInformation: 'Business information',
- inputCustomerAddress: 'Employment office location (within the area)',
- businessType: 'Business type in Thai',
- businessTypeEN: 'Business type in English',
- businessTypePure: 'Business Type',
-
- jobPosition: 'Job position in Thai',
- jobPositionEN: 'Job position in English',
- jobDescription: 'Job description',
- payDay: 'Payday',
- payRate: 'Daily wage rate',
- salesPerson: 'Salesperson',
-
- // เกี่ยวกับ About
- about: 'About',
- branchCode: 'Branch Code',
- legalEntityCode: 'Legal Entity Code',
- taxNo: 'Tax Identification Number',
- customerName: 'Customer Thai Name',
- customerEnglishName: 'Customer English Name',
- registerDate: 'Register Date',
- authorizedCapital: 'Registered Capital',
- registerName: 'RegisterName',
-
- customerBranchFormTab: 'Branch ',
-
- customerNameTh: 'Company/Legal Entity Name in Thai',
- customerNameEn: 'Company/Legal Entity Name in English',
- customerBranchName: 'Company/Legal Entity Name',
-
- allEmployee: 'All Employee',
-
- editHistory: 'Edit History',
- time: 'Time',
- editBy: 'Edit by',
- valueBefore: 'Before',
- valueAfter: 'After',
-
- serviceWorkTotal: 'Service Work Total',
- priceInformation: 'Price Information',
-};
diff --git a/src/i18n/en-US/drawer-component.ts b/src/i18n/en-US/drawer-component.ts
deleted file mode 100644
index b511b0ed..00000000
--- a/src/i18n/en-US/drawer-component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export default {
- drawerDashboard: 'Dashboard',
- drawerBranchManagement: 'Branch Management',
- drawerPersonnelManagement: 'Personnel Management',
- drawerCustomerManagement: 'Customer Management',
- drawerProductsAndServices: 'Products and Services',
- drawerQuotation: 'Quotation',
- drawerRequestList: 'Request List',
- drawerWorkOrder: 'Work Order',
- drawerInvoice: 'Invoice',
- drawerAccountingLedger: 'Accounting Ledger',
- drawerReport: 'Report',
-};
diff --git a/src/i18n/en-US/employer-dialog.ts b/src/i18n/en-US/employer-dialog.ts
deleted file mode 100644
index 3a618ea9..00000000
--- a/src/i18n/en-US/employer-dialog.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export default {
- corporationThaiName: 'Corporation ThaiName',
- corporationEnglishName: 'Corporation EnglishName',
-
- corporationThai: 'Company name in Thai',
- corporationEnglish: 'English company name',
-
- companyOwnerName: 'Company Owner Name',
-
- corporation: 'Corporation',
-};
diff --git a/src/i18n/en-US/form-dialog.ts b/src/i18n/en-US/form-dialog.ts
deleted file mode 100644
index 7b5fefa2..00000000
--- a/src/i18n/en-US/form-dialog.ts
+++ /dev/null
@@ -1,203 +0,0 @@
-export default {
- inputValidate: 'Please enter ',
- selectValidate: 'Please select ',
-
- // Branch & HQ
- formDialogHqAbbreviation: 'Head Office Abbreviation',
- formDialogInputHqAbbreviation: 'Please enter Head Office Abbreviation',
-
- formDialogTitleImg: 'Office Image',
- formDialogBtnImg: 'Add Office Image',
-
- formDialogTitleViewHeadOffice: 'Head Office',
- formDialogTitleViewSubBranch: 'Branch',
-
- formDialogTitleCreateHeadOffice: 'Add Headquarters',
- formDialogTitleEditHeadOffice: 'Edit Headquarters',
- formDialogTitleCreateSubBranch: ' Add Sub-branch',
- formDialogTitleEditSubBranch: 'Edit Sub-branch',
-
- formDialogTitleAddress: ' Head office address information',
-
- formDialogTitleLocation: 'Head Office Location',
- formDialogTitleInformation: 'Basic Information',
- formDialogTitleContact: 'Contact Information',
- formDialogTitlePersonal: 'Personal Information',
-
- formDialogTitleProductStatus: 'Product Status',
-
- formDialogInputCode: 'Head Office Code',
- formDialogInputTaxNo: 'Tax Identification Number',
- formDialogInputTaxNoValidate: 'Please enter the Tax Identification Number',
-
- formDialogInputNameHq: 'Head Office Name',
- formDialogInputNameSubBranch: 'Branch Name',
- formDialogInputNameHqValidate: 'Please enter the Head Office Name',
- formDialogInputNameSubBranchValidate: 'Please enter the Branch Name',
-
- formDialogInputNameHqEn: 'Head Office Name (English)',
- formDialogInputNameSubBranchEn: 'Branch Name (English)',
- formDialogInputNameHqEnValidate:
- 'Please enter the Head Office Name (English)',
- formDialogInputNameSubBranchEnValidate:
- 'Please enter the Branch Name (English)',
-
- formDialogInputTelephoneContact: 'Contact Telephone Number',
- formDialogUploadQrCode: 'Upload QR Code',
-
- formDialogInputTelephoneHq: 'Head Office Telephone Number',
- formDialogInputTelephoneSubBranch: 'Branch Telephone Number',
- formDialogInputEmailHq: 'Head Office Contact Email',
- formDialogInputEmailSubBranch: 'Branch Contact Email',
-
- formDialogInputContactName: 'Contact',
-
- formDialogInputOperatingHours: 'Operating Hours',
-
- formDialogInputAddressValidate: 'Please enter the address',
- formDialogInputProvinceValidate: 'Please enter the province',
-
- formDialogInputDistrictValidate: 'Please enter the district',
- formDialogInputSubDistrictValidate: 'Please enter the sub-district',
-
- formDialogBtnLocation: 'Start sharing location',
-
- // Personnel
- formDialogTitleAddressPersonnel: 'Personnel Address',
-
- formDialogBtnEditProfile: 'Edit Profile',
- formDialogBtnUploadProfile: 'Upload Image',
- formDialogTitleUserStatus: 'User Status',
-
- formDialogInputHqIdValidate: 'Please select head office',
- formDialogInputBrId: 'Branch Code',
- formDialogInputUserType: 'User Type',
- formDialogInputUserTypeValidate: 'Please select user type',
- formDialogInputUserRole: 'User Role',
- formDialogInputUserRoleValidate: 'Please select user role',
- formDialogInputUsername: 'Username',
- formDialogInputUsernameValidate: 'Please enter username',
- formDialogInputUserCode: 'Personnel Code',
-
- formDialogInputPrefixName: 'Prefix',
- formDialogInputPrefixNameValidate: 'Please select prefix',
- formDialogPrefixName: 'prefix',
- formDialogTitlePersonnel: 'Personnel Information',
- formDialogInputFirstName: 'First Name',
- formDialogInputMidName: 'Middle Name',
- formDialogInputFirstNameValidate: 'Please enter first name',
- formDialogInputLastName: 'Last Name',
- formDialogInputLastNameValidate: 'Please enter last name',
- formDialogInputFirstNameEN: 'First Name (EN)',
- formDialogInputMidNameEN: 'Middle Name (EN)',
- formDialogInputFirstNameENValidate: 'Please enter first name',
- formDialogInputLastNameEN: 'Last Name (EN)',
- formDialogInputLastNameENValidate: 'Please enter last name',
- formDialogInputTelephone: 'Telephone Number',
- formDialogInputEmail: 'Email',
- formDialogInputGender: 'Gender',
- formDialogInputBirthDate: 'Birth Date',
- formDialogInputAge: 'Age',
- formDialogInputNationality: 'Nationality',
-
- formDialogTitlePersonnelAddress: 'Personnel Address',
- formDialogTitleEmployerAddress: 'Employer Address',
- formDialogTitleAddressPure: 'Address',
- formDialogTitleAddressPureEN: 'Address in English',
-
- formDialogTitleByType: 'Job Information',
- formDialogInputRegisNo: 'Registration Number',
- formDialogInputStartDate: 'Start Date',
- formDialogInputRetireDate: 'Retire Date',
- formDialogInputResponsibleArea: 'Responsible Area',
- formDialogInputDiscount: 'Discount Condition',
- formDialogInputSourceNationality: 'Source Nationality',
- formDialogInputImportNationality: 'Import Nationality',
- formDialogInputTrainingPlace: 'Training Place',
- formDialogInputCheckpoint: 'Checkpoint',
- formDialogAttachment: 'Attachment Document',
-
- formDialogCustomerBranch: 'Branch Information',
-
- formDialogAddress: 'Address in Thai',
- formDialogAddressEN: 'Address in English',
-
- // Customer
- formDialogCustomerName: 'Customer Name',
- formDialogEmployerID: 'Employer ID',
- formDialogEmployerBranchCode: 'Employer code',
-
- formDialogEmployeeID: 'Employee ID',
- formDialogEmployeeNRCNo: 'Non-Thai Identification Number (N.R.C. No.)',
-
- formDialogToggleSameAddress: "Employer's Address",
- formDialogToggleCustomAddress: 'Custom',
-
- formDialogTitleHealthCheck: 'Health Checkup Results',
- formDialogInputCheckupRes: 'Health Checkup Results',
- formDialogInputCheckupType: 'Type of Checkup Results',
- formDialogInputHospital: 'Hospital',
- formDialogInputRemark: 'Remark',
- formDialogInputMedicalBenefit: 'Type of Medical Benefits',
- formDialogInputInsuranceCompany: 'Insurance Company',
- formDialogInputCoverageStartDate: 'Insurance Purchase Date',
- formDialogInputCoverageExpiretDate: 'Expiration Date',
- personalInfo: 'Personal Information',
- healthCheck: 'Health Checkup Results and Health Insurance',
- workHistory: 'Work History',
- other: 'Other',
-
- formDialogInputCheckupResValidate: 'Please Enter Health Checkup Results',
-
- formDialogInputOwnerName: 'Employer Name',
- formDialogInputJobPosition: 'Job Position',
- formDialogInputJobType: 'Job Type',
- formDialogInputWorkPlace: 'Work Place',
- formDialogInputWorkUntil: 'Permission to work until',
- formDialogInputWorkPermitNo: 'Work Permit Number',
- formDialogInputWorkPermitIssueDate: 'Work Permit Issuance Date',
- formDialogInputWorkPermitExpireDate: 'Work Permit Expiration Date',
-
- formDialogTitleFamilyHistory: 'Family History',
- formDialogTitleFamilyHistoryDad: 'Father',
- formDialogTitleFamilyHistoryMom: 'Mother',
- formDialogInputCitizenId:
- "Worker's National Identification Number (National ID Number from Country of Origin)",
- formDialogInputFamilyBirthPlace: 'Place of Birth',
-
- formDialogTitlePassport: 'Passport Information OCR',
- formDialogInputPassportType: 'Passport Type',
- formDialogInputPassportNo: 'Passport Number',
- formDialogInputPassportRef:
- 'Previous Passport Reference Number (in case of passport change)',
- formDialogInputWPassportPlace: 'Passport Issuance Place',
- formDialogInputPassportCountry: 'Issuing Country',
- formDialogInputPassportIssuance: 'Passport Issuance Date',
- formDialogInputPassportExpire: 'Passport Expiration Date',
-
- formDialogTitleVisa: 'Visa Information OCR',
- formDialogInputVisaType: 'Visa Type',
- formDialogInputVisaNo: 'Visa Number',
- formDialogInputVisaIssuance: 'Issuance Date',
- formDialogInputVisaExpire: 'Valid Until',
- formDialogInputVisaPlace: 'Visa Issuance Place',
- formDialogInputVisaStayUntil: 'Permitted to Stay Until',
- formDialogInputVisaTM6: 'TM.6 Number (Arrival)',
- formDialogInputVisaEnter: 'Date of Entry into the Country',
-
- formDialogTabCheckup: 'Checkup ',
- formDialogTabWork: 'Work ',
-
- formDialogEmployerRanchCode: 'Branch Code',
-
- formTitleCustomer: 'Company {msg}',
- formTitleCustomerNaturalPerson: 'Name {msg}',
- formTitleBranch: 'Branch {msg}',
-
- passportExpire: 'Passport Expiration Date',
-
- pleaseInformation: 'Please enter information',
-
- // product
- formDialogTitleUseStatus: 'Status',
-};
diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts
deleted file mode 100644
index 6b254d39..00000000
--- a/src/i18n/en-US/index.ts
+++ /dev/null
@@ -1,247 +0,0 @@
-import main from './main';
-import drawerComponent from './drawer-component';
-import personnelMainPage from './personnel-main-page';
-import address from './address';
-import branch from './branch';
-import user from './user';
-import formDialog from './form-dialog';
-import status from './status';
-import customerMainPage from './customer-main-page';
-import employerDialog from './employer-dialog';
-import otherDocument from './other-document';
-import productService from './product-service';
-import alertDialog from './alert-dialog';
-import bank from './bank';
-
-export default {
- ok: 'Confirm',
- agree: 'Ok',
- cancel: 'Cancel',
- failed: 'Failed',
- close: 'close',
- success: 'Success',
- search: 'Search',
- back: 'Back',
- undo: 'Undo',
- loading: 'Loading',
- download: 'Download',
- save: 'Save',
- edit: 'Edit',
- delete: 'Delete',
- telephone: 'Telephone',
- viewDetail: 'View Detail',
- noData: 'No Data',
- notFound: 'Data Not Found',
- code: 'Code',
- status: 'Status',
- type: 'Type',
- switchOnLabel: 'Open',
- switchOffLabel: 'Close',
- language: 'Language',
- languageName: 'English',
- select: 'Select',
- all: 'All',
- displayField: 'Display Fields',
- deleteConfirmTitle: 'Comfirm Deletion',
- deleteConfirmMessage: 'Do you want to delete this item?',
- headquartersNotEstablished:
- 'You have not yet established the headquarters. You need to establish the headquarters before you can create personnel.',
-
- changePassword: 'Change Password',
- signature: 'Signature',
- addSignature: 'Add Signature',
- clear: 'Clear',
- detail: 'Detail',
- add: 'Add',
- name: 'Name',
- editPersonalInfo: 'Edit personal infomation',
- logout: 'Logout',
- list: 'Item',
- manage: 'Manage',
- mode: 'Mode',
- theme: 'Theme',
- light: 'Light',
- dark: 'Dark',
- uploadFile: 'Upload File',
- newUpload: 'New Upload',
- baseOnDevice: 'Base on Device',
- person: 'Person',
- recordsPage: 'Showing {resultcurrentPage} out of {total} records',
- showing: 'Showing',
- dataSum: 'Data Summaries',
- createdAt: 'Created At',
- noResults: 'No Data',
- notRecorded: 'You have not yet saved.',
- editImage: 'Edit Image',
- bankBook: 'Bank Book',
- use: 'In Use',
- notUse: 'Not Use',
- orderNumber: 'Order Number',
- saveSuccessful: 'Save Successful',
- ...status,
- ...main,
- ...address,
- ...branch,
- ...user,
- ...drawerComponent,
- ...personnelMainPage,
- ...formDialog,
- ...customerMainPage,
- ...employerDialog,
- ...otherDocument,
- ...productService,
- ...alertDialog,
- ...bank,
-
- menu: {
- dms: 'Document Management',
- },
- form: {
- title: {
- info: '{name}',
- create: 'Create {name}',
- edit: 'Edit {name}',
- },
- address: 'Address {suffix}',
- error: {
- required: 'This field is required.',
- please: 'Please enter {msg} correct information.',
- invalid: 'Invalid value.',
- invalidCustomeMessage: 'Invalid value. {msg}',
- },
- warning: {
- title: 'Warning {msg}',
- unsave:
- 'You have unsaved changes. Are you sure you want to close this window?',
- },
- info: {
- cantChange:
- 'The {field} cannot be changed later. Do you want to use "{name}"',
- },
- },
- customer: {
- employer: 'Employer',
- employee: 'Employee',
- form: {
- selectType: 'Select Customer Type',
- group: {
- basicInfo: 'Basic Information',
- branch: 'Branch',
- },
-
- instance: '{index} instance',
-
- prefix: {
- mr: 'Mr.',
- mrs: 'Mrs.',
- miss: 'Miss.',
- },
-
- firstName: 'First Name in Thai',
- lastName: 'Last Name in Thai',
- firstNameEN: 'First Name in English',
- lastNameEN: 'Last Name in English',
-
- cardNumber: 'ID Card Number',
-
- prefixName: 'Prefix',
- legalPersonNo: 'Legal Entity Registration Number',
- registerName: 'Company Name',
- registerNameEN: 'Company Name (EN)',
- registerDate: 'Registered On',
- registerCompanyName: 'Registered Name',
- authorizedCapital: 'Authorized Capital',
-
- workplace: 'Workplace',
- workplaceEN: 'Workplace (EN)',
- address: 'Address',
- addressEN: 'Address (EN)',
- branchCode: 'Branch Code',
- customerCode: 'Employer Code',
- legalPersonCode: 'Legal Entity Code',
-
- codeAbbrev: 'Company Abbreviation',
- codeNumber: 'Company Number',
- registeredBranch: 'Registered Branch',
- customerName: 'Company Name',
- customerNameEN: 'Company Name (EN)',
- personName: 'Customer Name',
- taxIdentificationNumber: 'Tax Identification Number',
- branch: {
- title: 'Branch {name}',
- },
- headQuarters: {
- title: 'สำนักงานใหญ่',
- },
- },
-
- table: {
- orderNumber: 'No.',
- fullname: 'Full Name',
- businessTypePure: 'Business Type',
- address: 'Address',
- workPlace: 'Workplace',
- contactName: 'Contact Name',
- contactPhone: 'Contact Phone',
- },
- },
- customerBranch: {
- tab: {
- main: 'About',
- address: 'Address',
- business: 'Business',
- contact: 'Contact',
- attachment: 'Attachment',
- },
- form: {
- title: 'Branch',
- no: 'Branch No.',
- code: 'Branch Code',
- taxNo: 'Tax Identification Number',
- name: 'Branch Name',
- nameEN: 'Branch Name (EN)',
- authorizedCapital: 'Authorized Capital',
- registerName: 'Registered Name',
- registerDate: 'Registered Date',
- telephone: 'Telephone No.',
- attachment: 'Attachment',
- },
- },
- productService: {
- group: {
- addTitle: 'Add Product and Service Group',
- },
- type: {
- addTitle: 'Add Product and Service Type',
- },
- service: {
- title: 'Service',
- showTotalPrice: 'Show Total Price',
- },
- product: {
- noProduct: 'No Product',
- allProduct: 'All Product',
- },
- },
-
- backend: {
- sameBranchCodeExists: 'This Head Office Abbreviation is already in use.',
- },
-
- dialog: {
- title: {
- incompleteDataEntry: 'Incomplete Data Entry',
- },
- message: {
- incompleteDataEntry: 'Incomplete data entry on {tap} page',
- },
- action: {
- ok: 'OK',
- save: 'Save',
- saveAndClose: 'Save and Close',
- close: 'Close',
- delete: 'Delete',
- cancel: 'Cancel',
- },
- },
-};
diff --git a/src/i18n/en-US/main.ts b/src/i18n/en-US/main.ts
deleted file mode 100644
index 1ca94e00..00000000
--- a/src/i18n/en-US/main.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-export default {
- mainBranchTitle: 'Branch Management',
- mainBranchCaption: 'Manage branches within the organization.',
-
- mainPersonnelTitle: 'Personnel Management',
- mainPersonnelCaption: 'Manage personnel within the organization.',
-
- mainCustomerTitle: 'Customer Management',
- mainCustomerCaption: 'Manage customer within the organization.',
-
- mainProductTitle: 'Products & Services',
- mainProductCaption: 'List of products and services.',
-
- mainQuotationTitle: 'Quotation',
- mainQuotationCaption: 'List of quotations.',
-
- mainRequestTitle: 'Purchase Order',
- mainRequestCaption: 'List of purchase order.',
-
- mainOrderTitle: 'Request',
- mainOrderCaption: 'List of requests.',
-
- mainReceiptTitle: 'Bill of Lading',
- mainReceiptCaption: 'Bill of lading list.',
-
- mainFinanceTitle: 'Financial Management',
- mainFinanceCaption: 'List of all accounts.',
-
- mainDashboardTitle: 'Dashboard',
- mainDashboardCaption: 'Statistical information.',
-
- mainReportTitle: 'Report',
- mainReportCaption: 'List of report.',
-};
diff --git a/src/i18n/en-US/object.ts b/src/i18n/en-US/object.ts
deleted file mode 100644
index b01a3a62..00000000
--- a/src/i18n/en-US/object.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-export default {
- branchManagement: {
- label: {
- branchManagementCaption: 'Manage All Branch',
- branchLabel: 'Branch',
- branchHQLabel: 'Headquarters',
- },
-
- table: {
- title: {
- office: 'Office',
- ddress: 'Address',
- // formDialogInputTelephone: 'Telephone Number',
- telephone: 'Telephone Number',
- type: 'Type',
- },
- },
-
- input: {
- label: {
- search: 'Search',
- },
- },
-
- manu: {
- branchName: 'Branch Name',
- branchLabelTel: 'Branch Telephone No',
- branchLabelAddress: 'Branch Address',
- branchLabelType: 'Branch Type',
- viewDetail: 'View Detail',
- edit: 'Edit',
- delete: 'Delete',
- switchOnLabel: 'Open',
- switchOffLabel: 'Close',
- },
- },
-
- formDialog: {
- section: {
- formDialogTitleInformation: 'Basic Information',
- formDialogTitleContact: 'Contact Information',
- formDialogTitleAddress: ' Head office address information',
- formDialogTitleLocation: 'Head Office Location',
- formDialogTitleImg: 'Office Image',
- subtopic: {
- formDialogAddress: 'Address in Thai',
- formDialogAddressEN: 'Address in English',
- },
- },
- input: {
- formDialogInputCode: 'Head Office Code',
- formDialogInputBrId: 'Branch Code',
- formDialogInputTaxNo: 'Tax Identification Number',
- formDialogInputNameSubBranch: 'Branch Name',
- formDialogInputNameSubBranchEn: 'Branch Name (English)',
- formDialogInputEmailSubBranch: 'Branch Contact Email',
- formDialogInputTelephoneSubBranch: 'Branch Telephone Number',
- formDialogInputContactName: 'Contact',
- formDialogInputTelephoneContact: 'Contact Telephone Number',
- address: 'Address',
- province: 'Province',
- district: 'District',
- subDistrict: 'Sub-district',
- zipCode: 'Zip Code',
- },
-
- button: {
- formDialogUploadQrCode: 'Upload QR Code',
- formDialogBtnLocation: 'Start sharing location',
- formDialogBtnImg: 'Add Office Image',
- agree: 'Ok',
- cancel: 'Cancel',
- },
- },
-};
diff --git a/src/i18n/en-US/other-document.ts b/src/i18n/en-US/other-document.ts
deleted file mode 100644
index 55acbe1d..00000000
--- a/src/i18n/en-US/other-document.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export default {
- otherDocument: 'Other Document',
- additionalEmployerDocument: 'Additional Employer Documents',
-};
diff --git a/src/i18n/en-US/personnel-main-page.ts b/src/i18n/en-US/personnel-main-page.ts
deleted file mode 100644
index af903d4b..00000000
--- a/src/i18n/en-US/personnel-main-page.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export default {
- personnelTitle: 'Personnel',
- personnelManagement: 'Personnel Management',
- personnelManagementCaption: 'Manage All Personnel',
-
- personnelTooltipTitle: 'No personnel yet?',
- personnelTooltipCaption: 'Click + to add a personnel',
- personnelAdd: 'Add personnel',
-
- USER: 'Employee',
- MESSENGER: 'Courier',
- DELEGATE: 'Delegate',
- AGENCY: 'Agency',
-
- personnelStatTitle: 'Summary data',
-
- personnelCardUserType: 'Type',
- personnelCardTelephone: 'Telephone',
- personnelCardAge: 'Age',
- personnelCardNationality: 'Nationality',
-};
diff --git a/src/i18n/en-US/product-service.ts b/src/i18n/en-US/product-service.ts
deleted file mode 100644
index ef3ebe5d..00000000
--- a/src/i18n/en-US/product-service.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-export default {
- productAndService: 'Product and Service Groups',
- productAndServiceAll: 'All Product and Service Groups',
- productAndServiceType: 'Product and Service Type',
- productAndServiceGroupCode: 'Product and Service Group Code',
- productAndServiceGroupName: 'Product and Service Group Name',
- productAndServiceTypeCode: 'Product and Service Type Code',
- productAndServiceTypeName: 'Product and Service Type Name',
-
- service: 'Service',
- product: 'Product',
- productGroup: 'Product Group: {name}',
- productType: 'Product Type: {name}',
-
- messageTooltipNoProduct: 'No Product and Service Groups',
- messageTooltipProductCreate: 'Click + for product and service groups.',
-
- productCreate: 'Create Product and Service Group',
-
- addProduct: 'Add Product and Service Group',
-
- productCode: 'Product Code',
- productName: 'Product Name',
- productDetail: 'Product Detail',
- productProcessingTime: 'Processing Time (Day)',
- priceInformation: 'Price Information',
- salePrice: 'Sale Price',
- agentPrice: 'Agent Price',
- processingPrice: 'Processing Price',
-
- editService: 'Edit Service',
- addService: 'Add Service',
- buttonAddProduct: 'Add Product',
- editProduct: 'Edit Product',
-
- serviceInformation: 'Service Information',
- workInformation: 'Work Information',
- workName: 'Work Name',
- serviceCode: 'Work Code',
- serviceName: 'Service Name',
- serviceDetail: 'Service Detail',
- productInWork: 'Products in work',
- serviceAddProduct: 'Add Product',
- processTime: 'Processing Time',
- day: 'Days',
-
- noField: 'No Field',
-
- totalProductWork: 'Total product of work',
- workNo: 'Work',
-
- addWork: 'Add work',
-
- properties: 'Properties',
- noProperties: 'No Properties',
- serviceProperties: 'Service Properties',
- workProperties: 'Work Properties',
- propertiesInWork: 'Properties in work',
- text: 'Text',
- number: 'Number',
- date: 'Date',
- selection: 'Selection',
- propertiesName: 'Properties Name',
- decimal: 'Decimal',
- decimalPlace: 'Decimal Place',
- useComma: 'use comma',
- additional: 'Additional',
- telMaxLength: 'Max Length',
- addSelection: 'Add Selection',
- selectAll: 'Select All',
-
- noProduct: 'No Product',
-};
diff --git a/src/i18n/en-US/quotation.ts b/src/i18n/en-US/quotation.ts
deleted file mode 100644
index 24c4ee00..00000000
--- a/src/i18n/en-US/quotation.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-export default {
- quotation: {
- form: {
- createTitle: 'Create New Quotation',
-
- customerBranchSelect: 'Select Customer Branch',
- customerSelect: 'Customer Select',
-
- listWorker: 'List Worker',
- listProduct: 'List Product',
-
- labelNo: 'No',
- labelDate: 'Date',
- labelTime: 'Time',
- labelProcesser: 'Processer',
-
- buttonSave: 'Save Quotation',
- },
- },
-};
diff --git a/src/i18n/en-US/status.ts b/src/i18n/en-US/status.ts
deleted file mode 100644
index fe6f57e2..00000000
--- a/src/i18n/en-US/status.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export default {
- statusCREATED: 'Active',
- statusACTIVE: 'Active',
- statusINACTIVE: 'Inactive',
-};
diff --git a/src/i18n/en-US/user.ts b/src/i18n/en-US/user.ts
deleted file mode 100644
index 7ae894b5..00000000
--- a/src/i18n/en-US/user.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- firstname: 'First Name',
- lastname: 'Last Name',
- fullname: 'Full Name',
- userType: 'User Type',
- userRole: 'User Role',
- userCode: 'User Id',
-};
diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts
new file mode 100644
index 00000000..ab05fbe5
--- /dev/null
+++ b/src/i18n/eng/index.ts
@@ -0,0 +1,483 @@
+export default {
+ general: {
+ ok: 'OK',
+ save: 'Save',
+ open: 'Open',
+ close: 'Close',
+ edit: 'Edit',
+ cancel: 'Cancel',
+ back: 'Back',
+ undo: 'Undo',
+ search: 'Search',
+ download: 'Download',
+ delete: 'Delete',
+ clear: 'Clear',
+ all: 'All',
+ address: 'Address',
+ add: 'Add {text}',
+ telephone: 'Telephone',
+ loading: 'Loading',
+ confirm: 'Confirm',
+ login: 'Login',
+ logout: 'Logout',
+ manage: 'Manage',
+ theme: 'Theme',
+ light: 'Light',
+ dark: 'Dark',
+ mode: 'Mode',
+ dataSum: 'Data Summaries',
+ active: 'Active',
+ inactive: 'Inactive',
+ displayField: 'Display Fields',
+ order: 'Order',
+ name: 'Name',
+ fullName: 'Full Name',
+ detail: 'Detail',
+ remark: 'Remark',
+ createdAt: 'Created at',
+ noData: 'No Data',
+ noField: 'No Field',
+ notFound: 'Not Found',
+ viewDetail: 'View Detail',
+ type: 'Type',
+ orderNumber: 'No.',
+ recordPerPage: 'Records per page',
+ recordsPage: 'Showing {resultcurrentPage} out of {total} records',
+ day: 'Days',
+ select: 'Select',
+ selectAll: 'Select All',
+ additional: 'Additional',
+ editImage: 'Edit Image',
+ upload: 'Upload',
+ baseOnDevice: 'Base on Device',
+ clickToCreate: 'Click to create',
+ age: 'Age',
+ nationality: 'Nationalality',
+ times: 'No. {number}',
+ },
+ menu: {
+ dashboard: 'Dashboard',
+ dashboardCaption: 'Statistical information.',
+
+ branch: 'Branch Management',
+ branchCaption: 'Manage Branches within the organization.',
+
+ user: 'Personnel Management',
+ userCaption: 'Manage personnel within the organization.',
+
+ customer: 'Customer Management',
+ customerCaption: 'Manage customer within the organization.',
+
+ product: 'Product & Service',
+ productCaption: 'List of products and services.',
+
+ dms: 'Document Management',
+
+ quotation: 'Quotation',
+ quotationCaption: 'List of quotations.',
+
+ requestList: 'Request List',
+ requestListCaption: 'List of purchase request.',
+
+ workOrder: 'Work Order',
+ workOrderCaption: 'List of purchase order.',
+
+ invoice: 'Invoice',
+ invoiceCaption: 'Invoice.',
+
+ accountingLedger: 'Accounting Ledger',
+ accountingLedgerCaption: 'Accounting Ledger.',
+
+ report: 'Report',
+ reportCaption: 'List of report.',
+
+ profile: {
+ editPersonalInfo: 'Edit Personal Information',
+ signature: 'Signature',
+ mode: 'Mode',
+ addSignature: 'Add Signature',
+ },
+ },
+ form: {
+ title: {
+ info: '{name}',
+ create: 'Create {name}',
+ edit: 'Edit {name}',
+ },
+ field: {
+ basicInformation: 'Basic Information',
+ address: 'Address',
+ },
+ birthDate: 'Birth Date',
+ email: 'Email',
+ telephone: 'Telephone',
+ gender: 'Gender',
+ address: 'Address {suffix}',
+ province: 'Province',
+ district: 'District',
+ subDistrict: 'Sub-district',
+ zipCode: 'Zip Code',
+ prefixName: 'Prefix',
+ firstName: 'First Name',
+ firstNameEN: 'First Name (EN)',
+ lastName: 'Last Name',
+ lastNameEN: 'Last Name (EN)',
+ middleName: 'Middle Name',
+ middleNameEN: 'Middle Name (EN)',
+ error: {
+ required: 'This field is required.',
+ select: 'Please select.',
+ selectField: 'Please select {field}.',
+ please: 'Please enter {msg} correct information.',
+ invalid: 'Invalid value.',
+ invalidCustomeMessage: 'Invalid value. {msg}',
+ },
+ warning: {
+ title: 'Warning {msg}',
+ unsave:
+ 'You have unsaved changes. Are you sure you want to close this window?',
+ },
+ info: {
+ cantChange:
+ 'The {field} cannot be changed later. Do you want to use "{name}"',
+ },
+ maxLength: 'Max Length',
+ useComma: 'Use Comma',
+ decimal: 'Decimal',
+ decimalPlace: 'Decimal Place',
+ selection: 'Selection',
+ },
+ status: {
+ title: 'Status',
+ CREATED: 'Active', // NOTE: Treated as active
+ ACTIVE: 'Active',
+ INACTIVE: 'Inactive',
+ },
+ branch: {
+ office: 'Office',
+ card: {
+ orderNumber: 'No.',
+ branchLabelName: 'Name',
+ branchLabelAddress: 'Address',
+ branchLabelTel: 'Telephone',
+ branchLabelType: 'Type',
+ branchLabel: 'Branch',
+ branchHQLabel: 'Headoffice',
+ },
+ page: {
+ captionManage: 'Manage',
+ },
+ form: {
+ title: {
+ branchLabel: 'Branch',
+ branchHQLabel: 'Headoffice',
+ },
+ group: {
+ contact: 'Contact',
+ location: 'Location',
+ bankAccount: 'Bank Account',
+ admin: 'Branch Admin',
+ },
+ shareLocation: 'Share location',
+ abbrev: 'Abbreviation Name',
+ code: 'Headoffice Code',
+ codeBranch: 'Branch Code',
+ taxNo: 'Tax Identification Number',
+ contactName: 'Contact Name',
+ contactTelephone: 'Contact Telephone',
+ branchName: 'Branch Name',
+ branchNameEN: 'Branch Name (EN)',
+ headofficeName: 'Headoffice Name',
+ headofficeNameEN: 'Headoffice Name (EN)',
+ bankAccountNo: 'Bank Account {no}',
+ bankAccountStatus: 'Bank Account Status',
+ bank: 'Bank',
+ bankBranch: 'Bank Branch',
+ bankAccountNumber: 'Bank Account Number',
+ bankAccountName: 'Bank Account Name',
+ bankAccountType: 'Bank Account Type',
+ },
+ },
+ personnel: {
+ title: 'Personnel Management',
+ caption: 'Manage All Personnel',
+ personnel: 'Personnel',
+ age: 'Age',
+ USER: 'Employee',
+ MESSENGER: 'Courier',
+ DELEGATE: 'Delegate',
+ AGENCY: 'Agency',
+ addTitle: 'Add Personnel',
+ tooltipTitle: 'No personnel yet?',
+ tooltipCaption: 'Click + to add a personnel',
+ form: {
+ personalInformation: 'Personal Information',
+ addressInformation: 'Personnel Address',
+ workInformation: 'Job Information',
+ username: 'Username',
+ userType: 'User Type',
+ userRole: 'User Role',
+ prefixName: 'Prefix',
+ firstName: 'First Name',
+ lastName: 'Last Name',
+ firstNameEN: 'First Name (EN)',
+ lastNameEN: 'Last Name (EN)',
+ middleName: 'Middle Name',
+ middleNameEN: 'Middle Name (EN)',
+ regisNo: 'Registration Number',
+ startDate: 'Start Date',
+ retireDate: 'Retire Date',
+ responsibleArea: 'Responsibel Area',
+ discount: 'Discount Condition',
+ sourceNationality: 'Source Nationality',
+ importNationality: 'import Nationality',
+ trainingPlace: 'Training Place',
+ checkpoint: 'Checkpoint',
+ checkpointEN: 'Checkpoint (EN)',
+ attachment: 'Attachment Document',
+ },
+ },
+ customer: {
+ employer: 'Employer',
+ employerLegalEntity: 'Legal Entity',
+ employerNaturalPerson: 'Natrual Person',
+ employerType: 'Employer Type',
+ employee: 'Employee',
+ form: {
+ selectType: 'Select Customer Type',
+ group: {
+ branch: 'Branch',
+ },
+
+ prefix: {
+ mr: 'Mr.',
+ mrs: 'Mrs.',
+ miss: 'Miss.',
+ },
+
+ firstName: 'First Name in Thai',
+ lastName: 'Last Name in Thai',
+ firstNameEN: 'First Name in English',
+ lastNameEN: 'Last Name in English',
+
+ cardNumber: 'ID Card Number',
+
+ prefixName: 'Prefix',
+ legalPersonNo: 'Legal Entity Registration Number',
+ registerName: 'Company Name',
+ registerNameEN: 'Company Name (EN)',
+ registerDate: 'Registered On',
+ registerCompanyName: 'Registered Name',
+ authorizedCapital: 'Authorized Capital',
+
+ workplace: 'Workplace',
+ workplaceEN: 'Workplace (EN)',
+ address: 'Address',
+ addressEN: 'Address (EN)',
+ branchCode: 'Branch Code',
+ customerCode: 'Employer Code',
+ legalPersonCode: 'Legal Entity Code',
+
+ codeAbbrev: 'Company Abbreviation',
+ codeNumber: 'Company Number',
+ registeredBranch: 'Registered Branch',
+ customerName: 'Company Name',
+ customerNameEN: 'Company Name (EN)',
+ personName: 'Customer Name',
+ taxIdentificationNumber: 'Tax Identification Number',
+ branch: {
+ title: 'Branch {name}',
+ },
+ headQuarters: {
+ title: 'Headoffice',
+ },
+ },
+
+ table: {
+ orderNumber: 'No.',
+ fullname: 'Full Name',
+ businessTypePure: 'Business Type',
+ address: 'Address',
+ workPlace: 'Workplace',
+ contactName: 'Contact Name',
+ contactPhone: 'Contact Phone',
+ },
+ },
+ customerEmployee: {
+ branch: 'Branch',
+ form: {
+ group: {
+ personalInfo: 'Personal Information',
+ passport: 'Passport',
+ visa: 'VISA',
+ healthCheck: 'Health Check',
+ workHistory: 'Work History',
+ other: 'Other',
+ family: 'Family',
+ },
+ employerBranch: 'Employer Branch',
+ employeeCode: 'Employee Code',
+ nrcNo: 'Non-Thai Identification Number (N.R.C No.)',
+
+ passportNo: 'Passport No.',
+ passportRef:
+ 'Previous Passport Reference Number (In case of passport changed)',
+ passportType: 'Passport Type',
+ passportPlace: 'Passport Issuance Place',
+ passportIssuer: 'Passport Issuing Country',
+ passportIssueDate: 'Passport Issuance Date',
+ passportExpireDate: 'Passport Expiry Date',
+
+ addressSame: 'Use Employer Address',
+ addressCustom: 'Custom Address',
+
+ visaType: 'Visa Type',
+ visaNo: 'Visa Number',
+ visaIssuance: 'Issuance Date',
+ visaExpire: 'Valid Until',
+ visaPlace: 'Visa Issuance Place',
+ visaStayUntil: 'Permitted to Stay Until',
+ visaTM6: 'TM.6 Number (Arrival)',
+ visaEnter: 'Date of Entry into the Country',
+
+ employerSelect: {
+ branchName: 'Branch Name',
+ customerName: 'Employer Name',
+ },
+ },
+ formHealthCheck: {
+ title: 'Health Check',
+
+ result: 'Result',
+ checkupType: 'Type',
+ hospital: 'Hospital',
+ medicalBenefit: 'Type of Medical Benefits',
+ coverageStartDate: 'Insurance Purchase Date',
+ coverageExpireDate: 'Insurance Expiration Date',
+ insuranceCompany: 'Insurance Company',
+ },
+ formWorkHistory: {
+ title: 'Work History',
+
+ employerName: 'Employer Name',
+ jobType: 'Job Type',
+ jobPosition: 'Job Position',
+ workplace: 'Work Place',
+ workUntil: 'Permission to work until',
+ permitNo: 'Work Permit Number',
+ permitIssueDate: 'Work Permit Issuance Date',
+ permitExpireDate: 'Work Permit Expiration Date',
+ },
+ formFamily: {
+ citizenId:
+ "Worker's National Identification Number (National ID Number from Country of Origin)",
+ father: 'Father',
+ fatherBirthPlace: 'Father Birth Place',
+ mother: 'Mother',
+ motherBirthPlace: 'Mother Birth Place',
+ },
+ },
+ customerBranch: {
+ tab: {
+ main: 'About',
+ address: 'Address',
+ business: 'Business',
+ contact: 'Contact',
+ attachment: 'Attachment',
+ },
+ form: {
+ title: 'Branch',
+ no: 'Branch No.',
+ code: 'Branch Code',
+ taxNo: 'Tax Identification Number',
+ name: 'Branch Name',
+ nameEN: 'Branch Name (EN)',
+ authorizedCapital: 'Authorized Capital',
+ registerName: 'Registered Name',
+ registerDate: 'Registered Date',
+ telephone: 'Telephone No.',
+ attachment: 'Attachment',
+ },
+ },
+ productService: {
+ title: 'Products and Services',
+ caption: 'Manage All Products and Services',
+ group: {
+ title: 'Products and Services Group',
+ withName: 'Group of {name}',
+ addTitle: 'Add Products and Services Group',
+ code: 'Products and Services Group Code',
+ name: 'Products and Services Group Name',
+ },
+ type: {
+ title: 'Products and Services Types',
+ withName: 'Types of {name}',
+ addTitle: 'Add Products and Services Types',
+ code: 'Products and Services Types Code',
+ name: 'Products and Services Types Name',
+ },
+ service: {
+ title: 'Services',
+ totalWork: 'Total Work',
+ code: 'Services Code',
+ name: 'Services Name',
+ work: 'Work',
+ workName: 'Work Name',
+ showTotalPrice: 'Show Total Price',
+ addTitle: 'Add Services',
+ registeredBranch: 'Registered Branch',
+ information: 'Services Information',
+ workInformation: 'Work Information',
+ serviceProperties: 'Services Properties',
+ propertiesName: 'Properties Name',
+ properties: 'Properties',
+ noProperties: 'No Properties',
+ propertiesInWork: 'Properties in work',
+ productInWork: 'Products in work',
+ totalProductWork: 'Total products of work',
+ list: 'Item',
+ addWork: 'Add Work',
+ },
+ product: {
+ title: 'Products',
+ code: 'Products Code',
+ name: 'Products Name',
+ registeredBranch: 'Registered Branch',
+ noProduct: 'No Products',
+ allProduct: 'All Products',
+ addTitle: 'Add Products',
+ processingTime: 'Processing Time',
+ processingTimeDay: 'Processing Time (Days)',
+ priceInformation: 'Price Information',
+ salePrice: 'Sale Price',
+ agentPrice: 'Agent Price',
+ processingPrice: 'Processing Price',
+ },
+ },
+
+ backend: {
+ sameBranchCodeExists: 'This Head Office Abbreviation is already in use.',
+ },
+
+ dialog: {
+ title: {
+ incompleteDataEntry: 'Incomplete Data Entry',
+ confirmChangeStatus: 'Confirm Status Change',
+ confirmDelete: 'Confirm Deletion',
+ },
+ message: {
+ incompleteDataEntry: 'Incomplete data entry on {tap} page',
+ confirmChangeStatusOn: 'Do you want to open?',
+ confirmChangeStatusOff: 'Do you want to close?',
+ confirmDelete: 'Do you want to delete this item?',
+ },
+ action: {
+ ok: 'OK',
+ save: 'Save',
+ saveAndClose: 'Save and Close',
+ close: 'Close',
+ delete: 'Delete',
+ cancel: 'Cancel',
+ },
+ },
+};
diff --git a/src/i18n/index.ts b/src/i18n/index.ts
index e4553602..bba1bb34 100644
--- a/src/i18n/index.ts
+++ b/src/i18n/index.ts
@@ -1,7 +1,7 @@
-import enUS from './en-US';
-import th from './th-th';
+import eng from './eng';
+import tha from './tha';
export default {
- 'en-US': enUS,
- 'th-th': th,
+ eng,
+ tha,
};
diff --git a/src/i18n/th-th/address.ts b/src/i18n/th-th/address.ts
deleted file mode 100644
index bde15a68..00000000
--- a/src/i18n/th-th/address.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-export default {
- address: 'ที่อยู่',
- province: 'จังหวัด',
- district: 'อำเภอ',
- subDistrict: 'ตำบล',
- zipCode: 'รหัสไปรษณีย์',
-};
diff --git a/src/i18n/th-th/alert-dialog.ts b/src/i18n/th-th/alert-dialog.ts
deleted file mode 100644
index 035e5166..00000000
--- a/src/i18n/th-th/alert-dialog.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-export default {
- warning: 'เตือน',
- warningForgetInput: 'คุณกรอกข้อมูลไม่ครบ',
- warningClose: 'คุณยังไม่ได้บันทึกการแก้ไข ยืนยันที่จะปิดใช่หรือไม่',
-
- errorOccurred: 'เกิดข้อผิดพลาด.',
-
- confirmLogoutTitle: 'ยืนยันการออกจากระบบ',
- confirmLogoutMessage: 'คุณต้องการออกจากระบบ ใช่หรือไม่',
-
- confirmChangeStatusTitle: 'ยืนยันการเปลี่ยนสถานะ',
- confirmChangeStatusOnMessage: 'คุณต้องการเปิดใช่หรือไม่',
- confirmChangeStatusOffMessage: 'คุณต้องการปิดใช่หรือไม่',
-
- // Backend
- productGroupNotFound: 'ไม่พบกลุ่มสินค้า',
- productGroupInUsed: 'กลุ่มสินค้าที่ใช้งานอยู่',
-
- productNotFound: 'ไม่พบสินค้า',
- productInUsed: 'สินค้าใช้งานอยู่',
-
- productTypeNotFound: 'ไม่พบประเภทสินค้า',
- productGroupAssociatedBadReq: 'ไม่พบกลุ่มสินค้าที่เกี่ยวข้อง',
- productTypeInUsed: 'ประเภทสินค้าใช้งานอยู่',
- productGroupBadReq: 'ไม่พบกลุ่มสินค้า',
-
- serviceNotFound: 'ไม่พบบริการ',
- someProductBadReq: 'ไม่พบสินค้าบางส่วน',
- serviceInUsed: 'บริการใช้งานอยู่',
-
- workNotFound: 'ไม่พบงาน',
- workInUsed: 'งานที่ใช้งานอยู่',
-
- branchContactNotFound: 'ไม่พบผู้ติดต่อสาขา',
- branchBadReq: 'ไม่พบสาขา',
- branchNotFound: 'ไม่พบสาขา',
-
- cantMakeHQAndBranchSameTime:
- 'ไม่สามารถทำให้เป็นสำนักงานใหญ่และสาขาพร้อมกันได้',
- branchInUsed: 'สาขาใช้งานอยู่',
- oneOrMoreUserBadReq: 'ไม่พบผู้ใช้หนึ่งคนหรือมากกว่า',
- oneOrMoreBranchBadReq: 'ไม่พบสาขาหนึ่งสาขาหรือมากกว่า',
-
- customerBranchNotFound: 'ไม่พบสาขาลูกค้า',
- customerBranchInUsed: 'สาขาลูกค้าที่ใช้งานอยู่',
-
- customerNotFound: 'ไม่พบลูกค้า',
- customerInUsed: 'ลูกค้าใช้งานอยู่',
- oneOrMoreBranchMissing: 'ไม่สามารถลบสาขาหนึ่งหรือมากกว่าได้และสูญหาย',
-
- employeeCheckupNotFound: 'ไม่พบการตรวจสอบพนักงาน',
- provinceNotFound: 'ไม่พบจังหวัด',
- employeeNotFound: 'ไม่พบพนักงาน',
- employeeBadReq: 'ไม่พบพนักงาน',
- employeeInUsed: 'พนักงานใช้งานอยู่',
-
- someProvinceNotFound: 'ไม่พบจังหวัดบางส่วน',
- employeeOtherNotFound: 'ไม่พบข้อมูลอื่นของพนักงาน',
-
- employeeWorkNotFound: 'ไม่พบงานของพนักงาน',
-
- parentMenuBadReq: 'ไม่พบเมนูหลัก',
- menuNotFound: 'ไม่พบเมนู',
- menuBadReq: 'ไม่พบเมนู',
- menuComponentNotFound: 'ไม่พบส่วนประกอบเมนู',
- roleMenuNotFound: 'ไม่พบเมนูบทบาท',
-
- userNotFound: 'ไม่พบผู้ใช้',
- userInUsed: 'ผู้ใช้ใช้งานอยู่',
-
- unknowHowToVerify: 'ไม่ทราบวิธียืนยันตัวตน',
- noPermission: 'คุณไม่มีสิทธิในการเข้าถึงหรือดำเนินการใดๆ กับข้อมูลนี้',
- noPermissionToAccess: 'คุณไม่มีสิทธิในการเข้าถึงข้อมูลนี้',
-
- relationProvinceNotFound: 'ไม่พบจังหวัด',
- relationDistrictNotFound: 'ไม่พบอำเภอ',
- relationSubDistrictNotFound: 'ไม่พบตำบล',
-
- relationHQNotFound: 'ไม่พบสำนักงานใหญ่',
-
- relationCustomerNotFound: 'ไม่พบลูกค้า',
-
- relationCustomerBranchNotFound: 'ไม่พบสาขาลูกค้า',
-
- sameBranchCodeExists: 'ตัวย่อสำนักงานใหญ่นี้ถูกใช้แล้ว',
-};
diff --git a/src/i18n/th-th/bank.ts b/src/i18n/th-th/bank.ts
deleted file mode 100644
index b568fd8a..00000000
--- a/src/i18n/th-th/bank.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- accountNumber: 'เลขที่บัญชี',
- bankBranch: 'สาขาธนาคาร',
- accountName: 'ชื่อบัญชี',
- bankType: 'ประเภทของธนาคาร',
- accountStatus: 'สถานะการใช้งาน ',
- bankBookNo: 'ช่องทางที่',
-};
diff --git a/src/i18n/th-th/branch-main-page.ts b/src/i18n/th-th/branch-main-page.ts
deleted file mode 100644
index 1ddb2eb7..00000000
--- a/src/i18n/th-th/branch-main-page.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- branchManagement: 'จัดการสาขา',
- branchNoMainOfficeYet: 'ยังไม่มีสำนักงานใหญ่',
- branchClickToCreateMainOffice: 'คลิก + เพื่อสร้างสำนักงานใหญ่', // Click to create a main office.
- closedStatus: 'ปิด',
- btnCreate: 'สร้างสาขาใหญ่',
- headQuarters: 'สำนักงานใหญ่ ',
-};
diff --git a/src/i18n/th-th/branch.ts b/src/i18n/th-th/branch.ts
deleted file mode 100644
index e9b9bf8c..00000000
--- a/src/i18n/th-th/branch.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-export default {
- branchManagementCaption: 'จัดการสาขาทั้งหมด',
- branchInHQ: 'สาขาภายในสำนักงานใหญ่',
-
- office: 'สำนักงาน',
- branchLabel: 'สาขา',
- branchHQLabel: 'สำนักงานใหญ่',
- branchName: 'ชื่อสาขา',
- branchAdd: 'สร้างสำนักงานใหญ่',
- branchManagement: 'จัดการสาขา',
- branchNoMainOfficeYet: 'ยังไม่มีสำนักงานใหญ่?',
- branchClickToCreateMainOffice: 'คลิก + เพื่อสร้างสำนักงานใหญ่',
-
- totalEmployee: 'ลูกจ้างทั้งหมด',
-
- branchLabelCode: 'รหัสสาขา',
- branchLabelName: 'ชื่อสาขา',
- branchLabelTel: 'เบอร์โทรศัพท์สาขา',
- branchLabelAddress: 'ที่อยู่สาขา',
- branchLabelType: 'ประเภทสาขา',
- branchLabelStatus: 'สถานะสาขา',
-
- registeredBranch: 'สาขาที่ลงทะเบียน',
-
- branchStatTitle: 'สรุปจัดการสาขา',
-
- branchAdminTitle: 'ผู้จัดการสาขา',
- branchAdminNone: 'ไม่พบผู้จัดการสาขา',
-};
diff --git a/src/i18n/th-th/customer-main-page.ts b/src/i18n/th-th/customer-main-page.ts
deleted file mode 100644
index 1165c883..00000000
--- a/src/i18n/th-th/customer-main-page.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-export default {
- customerManagement: 'จัดการลูกค้า',
- customerManagementCaption: 'จัดการลูกค้าทั้งหมด',
-
- customerEmployerTooltipTitle: 'ยังไม่มีข้อมูลนายจ้าง',
- customerEmployeeTooltipTitle: 'ยังไม่มีข้อมูลลูกจ้าง',
- customerEmployerTooltipCaption: 'คลิก + เพื่อเพิ่มนายจ้าง',
- customerEmployeeTooltipCaption: 'คลิก + เพื่อเพิ่มลูกจ้าง',
- customerEmployerAdd: 'เพิ่มนายจ้าง',
- customerEmployeeAdd: 'เพิ่มลูกจ้าง',
-
- nameEmployee: 'คนงาน',
-
- EMPLOYER: 'นายจ้าง',
- EMPLOYEE: 'ลูกจ้าง',
- customerEmployerStatTitle: 'สรุปจำนวนข้อมูลนายจ้าง',
- customerEmployeeStatTitle: 'สรุปจำนวนข้อมูลลูกจ้าง',
-
- customerCardUserType: 'ประเภทนายจ้าง',
-
- customerLegalEntity: 'นิติบุคคล',
- customerNaturalPerson: 'บุคคลธรรมดา',
-
- businessInformation: 'ข้อมูลกิจการ',
- inputCustomerAddress: 'สำนักงานจัดหางาน (อยู่ในเขต พื้นที่)',
-
- businessType: 'ประเภทกิจการ ภาษาไทย',
- businessTypeEN: 'ประเภทกิจการ ภาษาอังกฤษ',
- businessTypePure: 'ประเภทกิจการ',
-
- jobPosition: 'ตําแหน่งงาน ภาษาไทย',
- jobPositionEN: 'ตําแหน่งงาน ภาษาอังกฤษ',
-
- jobDescription: 'ลักษณะงาน',
-
- payDay: 'วันที่จ่ายค่าแรง',
- payRate: 'อัตราค่าจ้าง/วัน',
-
- salesPerson: 'พนักงานขาย',
-
- // เกี่ยวกับ
- about: 'เกี่ยวกับ',
- branchCode: 'รหัสสาขา',
- legalEntityCode: 'รหัสนิติบุคคล',
- taxNo: 'เลขทะเบียนนิติบุคคล',
- customerName: 'ชื่อสาขา ภาษาไทย',
- customerEnglishName: 'ชื่อสาขา ภาษาอังกฤษ',
- registerDate: 'จดทะเบียนเมื่อ',
- authorizedCapital: 'ทุนจดทะเบียน',
- registerName: 'จดทะเบียนชื่อ',
-
- customerBranchFormTab: 'สาขาที่',
-
- customerNameTh: 'ชื่อบริษัท/นิติบุคคล (ไทย)',
- customerNameEn: 'ชื่อบริษัท/นิติบุคคล (อังกฤษ)',
- customerBranchName: 'ชื่อบริษัท/นิติบุคคล',
-
- officeType: '',
-
- allEmployee: 'ลูกจ้างทั้งหมด',
-
- editHistory: 'ประวัติการแก้ไข',
- time: 'เวลา',
- editBy: 'แก้ไขโดย',
- valueBefore: 'แก้ไขใหม่',
- valueAfter: 'ค่าเดิม',
-
- serviceWorkTotal: 'จำนวนงานทั้งหมด',
- priceInformation: 'ข้อมูลราคา',
-};
diff --git a/src/i18n/th-th/drawer-component.ts b/src/i18n/th-th/drawer-component.ts
deleted file mode 100644
index c1d1d9a3..00000000
--- a/src/i18n/th-th/drawer-component.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export default {
- drawerDashboard: 'Dashboard',
- drawerBranchManagement: 'จัดการสาขา',
- drawerPersonnelManagement: 'จัดการบุคลากร',
- drawerCustomerManagement: 'จัดการลูกค้า',
- drawerProductsAndServices: 'สินค้าและบริการ',
- drawerQuotation: 'ใบเสนอราคา',
- drawerRequestList: 'รายการคําขอ',
- drawerWorkOrder: 'ใบสั่งงาน',
- drawerInvoice: 'ใบรับสินค้า',
- drawerAccountingLedger: 'รายการทางบัญชี',
- drawerReport: 'รายงาน',
-};
diff --git a/src/i18n/th-th/employer-dialog.ts b/src/i18n/th-th/employer-dialog.ts
deleted file mode 100644
index 927d9eaa..00000000
--- a/src/i18n/th-th/employer-dialog.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export default {
- corporationThaiName: 'ชื่อ บริษัท/นิติบุคคล ภาษาไทย',
- corporationEnglishName: 'ชื่อ บริษัท/นิติบุคคล ภาษาอังกฤษ',
-
- corporationThai: 'ชื่อ บริษัท ภาษาไทย',
- corporationEnglish: 'ชื่อ บริษัท ภาษาอังกฤษ',
-
- companyOwnerName: 'ชื่อเจ้าของบริษัท',
-
- corporation: 'ชื่อ บริษัท/นิติบุคคล',
-};
diff --git a/src/i18n/th-th/form-dialog.ts b/src/i18n/th-th/form-dialog.ts
deleted file mode 100644
index e55c5269..00000000
--- a/src/i18n/th-th/form-dialog.ts
+++ /dev/null
@@ -1,202 +0,0 @@
-export default {
- inputValidate: 'กรุณากรอก',
- selectValidate: 'กรุณาเลือก',
-
- // Branch & HQ
- formDialogHqAbbreviation: 'ตัวย่อสำนักงานใหญ่',
- formDialogInputHqAbbreviation: 'โปรดระบุตัวย่อสำนักงานใหญ่',
-
- formDialogTitleImg: 'ภาพสำนักงาน',
- formDialogBtnImg: 'เพิ่มรูปสำนักงาน',
-
- formDialogTitleViewHeadOffice: 'สำนักงานใหญ่',
- formDialogTitleViewSubBranch: 'สาขา',
-
- formDialogTitleCreateHeadOffice: 'เพิ่มสำนักงานใหญ่',
- formDialogTitleEditHeadOffice: 'แก้ไขสำนักงานใหญ่',
-
- formDialogTitleCreateSubBranch: 'เพิ่มสาขา',
- formDialogTitleEditSubBranch: 'แก้ไขสาขา',
-
- formDialogTitleAddress: 'ข้อมูลที่อยู่สำนักงานใหญ่',
-
- formDialogTitleLocation: 'สถานที่ตั้งสำนักงานใหญ่',
- formDialogTitleInformation: 'ข้อมูลพื้นฐาน',
- formDialogTitleContact: 'ข้อมูลติดต่อ',
- formDialogTitlePersonal: 'ข้อมูลบุคคล',
-
- formDialogInputCode: 'รหัสสำนักงานใหญ่',
- formDialogInputTaxNo: 'เลขทะเบียนนิติบุคคล',
- formDialogInputTaxNoValidate: 'โปรดระบุเลขทะเบียนนิติบุคคล',
-
- formDialogInputNameHq: 'ชื่อสำนักงานใหญ่',
- formDialogInputNameSubBranch: 'ชื่อสาขา',
- formDialogInputNameHqValidate: 'โปรดระบุชื่อสำนักงานใหญ่',
- formDialogInputNameSubBranchValidate: 'โปรดระบุชื่อสาขา',
-
- formDialogInputNameHqEn: 'ชื่อสำนักงานใหญ่ (ภาษาอังกฤษ)',
- formDialogInputNameSubBranchEn: 'ชื่อสาขา (ภาษาอังกฤษ)',
- formDialogInputNameHqEnValidate: 'โปรดระบุชื่อสำนักงานใหญ่ (ภาษาอังกฤษ)',
- formDialogInputNameSubBranchEnValidate: 'โปรดระบุชื่อสาขา (ภาษาอังกฤษ)',
-
- formDialogInputTelephoneContact: 'เบอร์โทรศัพท์ติดต่อ',
- formDialogUploadQrCode: 'อัปโหลด QR Code',
-
- formDialogInputTelephoneHq: 'เบอร์โทรศัพท์สำนักงานใหญ่',
- formDialogInputTelephoneSubBranch: 'เบอร์โทรศัพท์สาขา',
- formDialogInputEmailHq: 'อีเมลติดต่อสำนักงานใหญ่',
- formDialogInputEmailSubBranch: 'อีเมลติดต่อสาขา',
-
- formDialogInputContactName: 'ติดต่อ',
-
- formDialogInputOperatingHours: 'เวลาทําการ',
-
- formDialogInputAddressValidate: 'โปรดระบุที่อยู่',
- formDialogInputProvinceValidate: 'โปรดระบุจังหวัด',
-
- formDialogInputDistrictValidate: 'โปรดระบุอำเภอ',
- formDialogInputSubDistrictValidate: 'โปรดระบุตำบล',
-
- formDialogBtnLocation: 'เริ่มแชร์โลเคชั่น',
-
- // Personnel
- formDialogTitleAddressPersonnel: 'ที่อยู่พนักงาน',
-
- formDialogBtnEditProfile: 'แก้ไขโปรไฟล์',
- formDialogBtnUploadProfile: 'อัปโหลดรูปภาพ',
- formDialogTitleUserStatus: 'สถานะผู้ใช้งาน',
- formDialogTitleProductStatus: 'สถานะสินค้า',
-
- formDialogInputHqIdValidate: 'กรุณาเลือกสำนักงานใหญ่',
- formDialogInputBrId: 'รหัสสาขา',
- formDialogInputUserType: 'ประเภทผู้ใช้งาน',
- formDialogInputUserTypeValidate: 'กรุณาเลือกประเภทผู้ใช้งาน',
- formDialogInputUserRole: 'สิทธิ์ผู้ใช้งาน',
- formDialogInputUserRoleValidate: 'กรุณาเลือกสิทธิ์ผู้ใช้งาน',
- formDialogInputPrefixNameValidate: 'กรุณาเลือกคำนำหน้า',
- formDialogInputUsername: 'ชื่อผู้ใช้งาน (Username)',
- formDialogInputUsernameValidate: 'กรุณากรอกชื่อผู้ใช้งาน',
- formDialogInputUserCode: 'รหัสพนักงาน',
-
- formDialogInputPrefixName: 'คำนำหน้า',
-
- formDialogTitlePersonnel: 'ข้อมูลบุคลากร',
- formDialogInputFirstName: 'ชื่อ',
- formDialogInputMidName: 'ชื่อกลาง',
- formDialogInputFirstNameValidate: 'กรุณากรอกชื่อ',
- formDialogInputLastName: 'นามสกุล',
- formDialogInputLastNameValidate: 'กรุณากรอกนามสกุล',
- formDialogInputFirstNameEN: 'ชื่อ ภาษาอังกฤษ',
- formDialogInputMidNameEN: 'ชื่อกลาง ภาษาอังกฤษ',
- formDialogInputFirstNameENValidate: 'กรุณากรอกชื่อ ภาษาอังกฤษ',
- formDialogInputLastNameEN: 'นามสกุล ภาษาอังกฤษ',
- formDialogInputLastNameENValidate: 'กรุณากรอกนามสกุล ภาษาอังกฤษ',
- formDialogInputTelephone: 'เบอร์โทร',
- formDialogInputEmail: 'อีเมล',
- formDialogInputGender: 'เพศ',
- formDialogInputBirthDate: 'วันเดือนปีเกิด',
- formDialogInputAge: 'อายุ',
- formDialogInputNationality: 'สัญชาติ',
-
- formDialogTitlePersonnelAddress: 'ข้อมูลที่อยู่พนักงาน',
- formDialogTitleEmployerAddress: 'ข้อมูลที่อยู่นายจ้าง',
- formDialogTitleAddressPure: 'ที่อยู่',
- formDialogTitleAddressPureEN: 'ที่อยู่ภาษาอังกฤษ',
-
- formDialogTitleByType: 'ข้อมูลการทำงาน',
- formDialogInputRegisNo: 'เลขประจำตัว นจ. 16 (เลขที่ขึ้นทะเบียน)',
- formDialogInputStartDate: 'วันที่เริ่มงาน',
- formDialogInputRetireDate: 'วันที่พ้นสภาพพนักงาน',
- formDialogInputResponsibleArea: 'พื้นที่ ที่รับผิดชอบในการส่งเอกสาร',
- formDialogInputDiscount: 'เงื่อนไขส่วนลดบริการต่างๆ ของตัวแทน',
- formDialogInputSourceNationality: 'สัญชาติต้นทาง',
- formDialogInputImportNationality: 'นำเข้าสัญชาติ',
- formDialogInputTrainingPlace: 'สถานที่อบรม',
- formDialogInputCheckpoint: 'ด่าน',
- formDialogAttachment: 'แบบเอกสารประจำตัว',
- formDialogPrefixName: 'คํานําหน้า',
- formDialogCustomerBranch: 'ข้อมูลสาขา',
-
- formDialogAddress: 'ที่อยู่ ภาษาไทย',
- formDialogAddressEN: 'ที่อยู่ ภาษาอังกฤษ',
-
- // Customer
- formDialogCustomerName: 'ชื่อนายจ้าง',
-
- formDialogEmployerID: 'รหัสนายจ้าง',
- formDialogEmployerBranchCode: 'รหัสนายจ้าง',
-
- formDialogEmployeeID: 'รหัสลูกจ้าง',
- formDialogEmployeeNRCNo: 'เลขบัตรประจำตัวคนซึ่งไม่มีสัญชาติไทย (N.R.C. No.)',
-
- formDialogToggleSameAddress: 'เลือกที่อยู่ตามนายจ้าง',
- formDialogToggleCustomAddress: 'กำหนดเอง',
-
- formDialogTitleHealthCheck: 'ข้อมูลผลตรวจสุขภาพ',
- formDialogInputCheckupRes: 'ผลการตรวจสุขภาพ',
- formDialogInputCheckupType: 'ประเภทผลการตรวจ',
- formDialogInputHospital: 'โรงพยาบาล',
- formDialogInputRemark: 'หมายเหตุ',
- formDialogInputMedicalBenefit: 'ประเภทสิทธิการรักษา',
- formDialogInputInsuranceCompany: 'บริษัทประกัน',
- formDialogInputCoverageStartDate: 'วันที่ซื้อประกัน',
- formDialogInputCoverageExpiretDate: 'วันที่หมดอายุ',
- personalInfo: 'ข้อมูลส่วนตัว',
- healthCheck: 'ผลการตรวจสุขภาพและประกันสุขภาพ',
- workHistory: 'ประวัติการทำงาน',
- other: 'อื่นๆ',
-
- formDialogInputCheckupResValidate: 'กรุณากรอกผลการตรวจสุขภาพ',
-
- formDialogInputOwnerName: 'ชื่อนายจ้าง',
- formDialogInputJobPosition: 'ตำแหน่งงาน',
- formDialogInputJobType: 'ลักษณะงาน',
- formDialogInputWorkPlace: 'สถานที่ทำงาน',
- formDialogInputWorkUntil: 'ได้รับอนุญาตให้ทำงานถึงวันที่',
- formDialogInputWorkPermitNo: 'เลขที่ใบอนุญาตทำงาน',
- formDialogInputWorkPermitIssueDate: 'วันออกใบอนุญาตทำงาน',
- formDialogInputWorkPermitExpireDate: 'วันหมดอายุใบอนุญาตทำงาน',
-
- formDialogTitleFamilyHistory: 'ประวัติครอบครัว',
- formDialogTitleFamilyHistoryDad: 'บิดา',
- formDialogTitleFamilyHistoryMom: 'มารดา',
- formDialogInputCitizenId:
- 'เลขประจำตัวประชาชนของคนงาน (เลขประจำตัวจากประเทศต้นทาง)',
- formDialogInputFamilyBirthPlace: 'สถานที่เกิด',
-
- formDialogTitlePassport: 'ข้อมูลหนังสือเดินทาง OCR',
- formDialogInputPassportType: 'ประเภทหนังสือเดินทาง',
- formDialogInputPassportNo: 'เลขที่หนังสือเดินทาง',
- formDialogInputPassportRef:
- 'เลขอ้างอิงเลขที่หนังสือเดินทางเดิม (กรณีเปลี่ยนหนังสือเดินทาง)',
- formDialogInputWPassportPlace: 'สถานที่ออกหนังสือเดินทาง',
- formDialogInputPassportCountry: 'ประเทศที่ออก',
- formDialogInputPassportIssuance: 'วันที่ออกหนังสือเดินทาง',
- formDialogInputPassportExpire: 'วันหมดอายุหนังสือเดินทาง',
-
- formDialogTitleVisa: 'ข้อมูลการตรวจลงตรา (VISA) OCR',
- formDialogInputVisaType: 'ประเภทการตรวจลงตรา',
- formDialogInputVisaNo: 'เลขที่ตรวจลงตรา',
- formDialogInputVisaIssuance: 'ออกให้วันที่',
- formDialogInputVisaExpire: 'ใช้ได้ถึงวันที่',
- formDialogInputVisaPlace: 'ออกให้ที่',
- formDialogInputVisaStayUntil: 'ให้อยู่ในราชอาณาจักรถึงวันที่',
- formDialogInputVisaTM6: 'เลขที่ใบ ตม.6 (ใบขาเข้า)',
- formDialogInputVisaEnter: 'วันที่เดินทางเข้ามาในประเทศ',
-
- formDialogTabCheckup: 'ครั้งที่ ',
- formDialogTabWork: 'ครั้งที่ ',
-
- formDialogEmployerRanchCode: 'รหัสสาขา',
-
- formTitleCustomer: 'บริษัท {msg}',
- formTitleCustomerNaturalPerson: 'ชื่อ {msg}',
- formTitleBranch: 'สาขา {msg}',
-
- passportExpire: 'วันหมดอายุของเอกสาร(visa ,passport)',
-
- pleaseInformation: 'โปรดกรอกข้อมูล',
-
- // product
- formDialogTitleUseStatus: 'สถานะการใช้งาน',
-};
diff --git a/src/i18n/th-th/index.ts b/src/i18n/th-th/index.ts
deleted file mode 100644
index e19e207e..00000000
--- a/src/i18n/th-th/index.ts
+++ /dev/null
@@ -1,244 +0,0 @@
-import main from './main';
-import drawerComponent from './drawer-component';
-import personnelMainPage from './personnel-main-page';
-import customerMainPage from './customer-main-page';
-import address from './address';
-import branch from './branch';
-import user from './user';
-import formDialog from './form-dialog';
-import status from './status';
-import employerDialog from './employer-dialog';
-import otherDocument from './other-document';
-import productService from './product-service';
-import alertDialog from './alert-dialog';
-import bank from './bank';
-export default {
- ok: 'ยืนยัน',
- agree: 'ตกลง',
- cancel: 'ยกเลิก',
- failed: 'เกิดข้อผิดพลาด',
- success: 'สำเร็จ',
- close: 'ปิด',
- search: 'ค้นหา',
- loading: 'กำลังโหลด',
- download: 'ดาวน์โหลด',
- back: 'กลับ',
- undo: 'เลิกทำ',
- save: 'บันทึก',
- edit: 'แก้ไข',
- delete: 'ลบ',
- telephone: 'เบอร์โทรศัพท์',
- viewDetail: 'ดูรายละเอียด',
- noData: 'ยังไม่มีข้อมูล',
- notFound: 'ไม่พบข้อมูล',
- code: 'รหัส',
- type: 'ประเภท',
- status: 'สถานะ',
- language: 'ภาษา',
- languageName: 'ไทย',
- select: 'เลือก',
- all: 'ทั้งหมด',
- switchOnLabel: 'เปิด',
- switchOffLabel: 'ปิด',
- displayField: 'ข้อมูลที่แสดง',
- deleteConfirmTitle: 'ยืนยันการลบข้อมูล',
- deleteConfirmMessage: 'คุณต้องการลบข้อมูลใช่หรือไม่',
-
- saveConfirmTitle: 'ยืนยันการบันทึกข้อมูล',
- saveConfirmMessage: 'คุณต้องการบันทึกข้อมูลใช่หรือไม่',
-
- headquartersNotEstablished:
- 'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
- changePassword: 'เปลี่ยนรหัสผ่าน',
- signature: 'ลายเซ็น',
- addSignature: 'เพิ่มลายเซ็น',
- clear: 'ล้าง',
- detail: 'รายละเอียด',
- add: 'เพิ่ม',
- name: 'ชื่อ',
- editPersonalInfo: 'แก้ไขข้อมูลส่วนตัว',
- logout: 'ออกจากระบบ',
- list: 'รายการ',
- manage: 'จัดการ',
- mode: 'โหมด',
- theme: 'ธีม',
- light: 'สว่าง',
- dark: 'มืด',
- uploadFile: 'อัปโหลดไฟล์',
- newUpload: 'อัปโหลดใหม่',
- baseOnDevice: 'สีตามอุปกรณ์',
- person: 'คน',
- recordsPage: 'แสดง {resultcurrentPage} รายการจาก {total} รายการ',
- showing: 'แสดงทีละ',
- dataSum: 'สรุปจำนวนข้อมูล',
- createdAt: 'สร้างเมื่อ',
- noResults: 'ไม่มีข้อมูล',
- notRecorded: 'คุณยังไม่ได้บันทึก',
- editImage: 'แก้ไขรูป',
- bankBook: 'บัญชีธนาคาร',
- use: 'ใช้งาน',
- notUse: 'ไม่ใช้งาน',
- orderNumber: 'ลําดับ',
- saveSuccessful: 'บันทึกข้อมูลสำเร็จ',
- ...status,
- ...main,
- ...address,
- ...branch,
- ...user,
- ...drawerComponent,
- ...personnelMainPage,
- ...formDialog,
- ...customerMainPage,
- ...employerDialog,
- ...otherDocument,
- ...productService,
- ...alertDialog,
- ...bank,
- menu: {
- dms: 'จัดการเอกสาร',
- },
- form: {
- title: {
- info: '{name}',
- create: 'สร้าง {name}',
- edit: 'แก้ไข {name}',
- },
- address: 'ที่อยู่ {suffix}',
- error: {
- required: 'จำเป็นต้องกรอกข้อมูลนี้',
- please: 'โปรดใส่ข้อมูล{msg}ให้ถูกต้อง',
- invalid: 'ค่าที่ไม่ถูกต้อง',
- invalidCustomeMessage: 'ค่าที่ไม่ถูกต้อง {msg}',
- },
- warning: {
- title: 'แจ้งเตือน {msg}',
- unsave:
- 'คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก คุณต้องการปิดหน้าต่างนี้หรือไม่',
- },
- info: {
- cantChange:
- '{field} ไม่สามารถแก้ไขภายหลังได้ คุณต้องการใช้ "{name}" ใช่หรือไม่',
- },
- },
- customer: {
- employer: 'นายจ้าง',
- employee: 'ลูกจ้าง',
-
- form: {
- selectType: 'เลือกประเภท',
- group: {
- basicInfo: 'ข้อมูลพื้นฐาน',
- branch: 'ข้อมูลสาขา',
- },
-
- prefix: {
- mr: 'Mr.',
- mrs: 'Mrs.',
- miss: 'Miss.',
- },
-
- firstName: 'ชื่อ ภาษาไทย',
- lastName: 'นามสกุล ภาษาไทย',
- firstNameEN: 'ชื่อ ภาษาอังกฤษ',
- lastNameEN: 'นามสกุล ภาษาอังกฤษ',
-
- cardNumber: 'บัตรประชาชนเลขที่',
-
- prefixName: 'คํานําหน้า',
- instance: 'ครั้งที่ {index}',
- legalPersonNo: 'ทะเบียนนิติบุคคลเลขที่',
- registerName: 'ชื่อบริษัท',
- registerNameEN: 'ชื่อบริษัท (EN)',
- registerDate: 'จดทะเบียนเมื่อ',
- registerCompanyName: 'จดทะเบียนชื่อ',
- authorizedCapital: 'ทุนที่จดทะเบียน',
- workplace: 'สถานที่ทํางาน',
- workplaceEN: 'สถานที่ทํางาน (EN)',
- address: 'ที่อยู่',
- addressEN: 'ที่อยู่ (EN)',
- branchCode: 'รหัสสาขา',
- customerCode: 'รหัสนายจ้าง',
- legalPersonCode: 'รหัสนิติบุคคล',
- codeAbbrev: 'ชื่อย่อบริษัท',
- codeNumber: 'เลขประจำตัวบริษัท',
- registeredBranch: 'สาขาที่ลงทะเบียน',
- customerName: 'ชื่อบริษัท',
- customerNameEN: 'ชื่อบริษัท (EN)',
- personName: 'ชื่อลูกค้า',
- taxIdentificationNumber: 'หมายเลขทะเบียนนิติบุคคล',
- branch: {
- title: 'สาขาที่ {name}',
- },
- headQuarters: {
- title: 'สำนักงานใหญ่',
- },
- },
-
- table: {
- orderNumber: 'ลําดับ',
- fullname: 'ชื่อ-นามสกุล',
- businessTypePure: 'ประเภทกิจการ',
- address: 'ที่อยู่',
- workPlace: 'สถานที่ทํางาน',
- contactName: 'ชื่อผู้ติดต่อ',
- contactPhone: 'โทรศัพท์ผู้ติดต่อ',
- },
- },
- customerBranch: {
- tab: {
- main: 'เกี่ยวกับ',
- address: 'ที่อยู่',
- business: 'ธุรกิจ',
- contact: 'ติดต่อ',
- attachment: 'เอกสารเพิ่มเติม',
- },
- form: {
- title: 'สาขา',
- no: 'เลขที่สาขา',
- code: 'รหัสสาขา',
- taxNo: 'เลขทะเบียนนิติบุคคล',
- name: 'ชื่อสาขา',
- nameEN: 'ชื่อสาขา (ภาษาอังกฤษ)',
- authorizedCapital: 'ทุนจดทะเบียน',
- registerName: 'ชื่อที่จดทะเบียน',
- registerDate: 'วันที่จดทะเบียน',
- attachment: 'เอกสารเพิ่มเติม',
- },
- },
- productService: {
- group: {
- addTitle: 'เพิ่มกลุ่มสินค้าและบริการ',
- },
- type: {
- addTitle: 'เพิ่มประเภทสินค้าและบริการ',
- },
- service: {
- title: 'บริการ',
- showTotalPrice: 'แสดงราคารวม',
- },
- product: {
- noProduct: 'ยังไม่มีสินค้า',
- allProduct: 'สินค้าทั้งหมด',
- },
- },
-
- backend: {
- sameBranchCodeExists: 'ตัวย่อสำนักงานใหญ่นี้ถูกใช้แล้ว',
- },
- dialog: {
- title: {
- incompleteDataEntry: 'กรอกข้อมูลไม่ครบ',
- },
- message: {
- incompleteDataEntry: 'กรอกข้อมูลไม่ครบในหน้า {tap}',
- },
- action: {
- ok: 'ยืนยัน',
- save: 'บันทึก',
- saveAndClose: 'บันทึกและปิดหน้าต่าง',
- close: 'ปิดหน้าต่าง',
- delete: 'ลบ',
- cancel: 'ยกเลิก',
- },
- },
-};
diff --git a/src/i18n/th-th/main.ts b/src/i18n/th-th/main.ts
deleted file mode 100644
index ea26c3f7..00000000
--- a/src/i18n/th-th/main.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-export default {
- mainBranchTitle: 'จัดการสาขา',
- mainBranchCaption: 'จัดการสาขาภายในองค์กร',
-
- mainPersonnelTitle: 'จัดการบุคลากร',
- mainPersonnelCaption: 'จัดการคนภายในองค์กร',
-
- mainCustomerTitle: 'จัดการลูกค้า',
- mainCustomerCaption: 'จัดการคนภายในองค์กร',
-
- mainProductTitle: 'สินค้าและบริการ',
- mainProductCaption: 'ประเภทสินค้าและบริการ',
-
- mainQuotationTitle: 'ใบเสนอราคา',
- mainQuotationCaption: 'รายการใบเสนอราคา',
-
- mainRequestTitle: 'รายการคำขอ',
- mainRequestCaption: 'แสดงรายการคำขอ',
-
- mainOrderTitle: 'ใบสั่งซื้อ',
- mainOrderCaption: 'รายการใบสั่งซื้อ',
-
- mainReceiptTitle: 'ใบรับสินค้า',
- mainReceiptCaption: 'รายการใบรับสินค้า',
-
- mainFinanceTitle: 'การจัดการการเงิน',
- mainFinanceCaption: 'รายการบัญชีทั้งหมด',
-
- mainDashboardTitle: 'Dashboard',
- mainDashboardCaption: 'แสดงข้อมูลสถิติ',
-
- mainReportTitle: 'รายงาน',
- mainReportCaption: 'แสดงรายงาน',
-};
diff --git a/src/i18n/th-th/object.ts b/src/i18n/th-th/object.ts
deleted file mode 100644
index c66d37f1..00000000
--- a/src/i18n/th-th/object.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-export default {
- branchManagement: {
- label: {
- branchManagementCaption: 'จัดการทุกสาขา',
- branchLabel: 'สาขา',
- branchHQLabel: 'สำนักงานใหญ่',
- },
-
- table: {
- title: {
- office: 'สำนักงาน',
- address: 'ที่อยู่',
- // formDialogInputTelephone: 'เบอร์โทรศัพท์',
- telephone: 'เบอร์โทรศัพท์',
- type: 'ประเภท',
- },
- },
-
- input: {
- label: {
- search: 'ค้นหา',
- },
- },
-
- manu: {
- branchName: 'ชื่อสาขา',
- branchLabelTel: 'เบอร์โทรศัพท์สาขา',
- branchLabelAddress: 'ที่อยู่สาขา',
- branchLabelType: 'ประเภทสาขา',
- viewDetail: 'ดูรายละเอียด',
- edit: 'แก้ไข',
- delete: 'ลบ',
- switchOnLabel: 'เปิด',
- switchOffLabel: 'ปิด',
- },
- },
-
- formDialog: {
- section: {
- formDialogTitleInformation: 'ข้อมูลพื้นฐาน',
- formDialogTitleContact: 'ข้อมูลติดต่อ',
- formDialogTitleAddress: 'ข้อมูลที่อยู่สำนักงานใหญ่',
- formDialogTitleLocation: 'ตำแหน่งที่ตั้งสำนักงานใหญ่',
- formDialogTitleImg: 'ภาพสำนักงาน',
- subtopic: {
- formDialogAddress: 'ที่อยู่ภาษาไทย',
- formDialogAddressEN: 'ที่อยู่ภาษาอังกฤษ',
- },
- },
- input: {
- formDialogInputCode: 'รหัสสำนักงานใหญ่',
- formDialogInputBrId: 'รหัสสาขา',
- formDialogInputTaxNo: 'เลขทะเบียนนิติบุคคล',
- formDialogInputNameSubBranch: 'ชื่อสาขา',
- formDialogInputNameSubBranchEn: 'ชื่อสาขา (ภาษาอังกฤษ)',
- formDialogInputEmailSubBranch: 'อีเมลติดต่อสาขา',
- formDialogInputTelephoneSubBranch: 'เบอร์โทรศัพท์สาขา',
- formDialogInputContactName: 'ชื่อผู้ติดต่อ',
- formDialogInputTelephoneContact: 'เบอร์โทรศัพท์ผู้ติดต่อ',
- address: 'ที่อยู่',
- province: 'จังหวัด',
- district: 'อำเภอ',
- subDistrict: 'ตำบล',
- zipCode: 'รหัสไปรษณีย์',
- },
-
- button: {
- formDialogUploadQrCode: 'อัปโหลด QR Code',
- formDialogBtnLocation: 'เริ่มแชร์ตำแหน่งที่ตั้ง',
- formDialogBtnImg: 'เพิ่มภาพสำนักงาน',
- agree: 'ตกลง',
- cancel: 'ยกเลิก',
- },
- },
-};
diff --git a/src/i18n/th-th/other-document.ts b/src/i18n/th-th/other-document.ts
deleted file mode 100644
index 611a4ad1..00000000
--- a/src/i18n/th-th/other-document.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export default {
- otherDocument: 'เอกสารอื่นๆ',
- additionalEmployerDocument: 'เอกสารนายจ้างเพิ่มเติม',
-};
diff --git a/src/i18n/th-th/personnel-main-page.ts b/src/i18n/th-th/personnel-main-page.ts
deleted file mode 100644
index f9b72d95..00000000
--- a/src/i18n/th-th/personnel-main-page.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export default {
- personnelTitle: 'บุคลากร',
- personnelManagement: 'จัดการบุคลากร',
- personnelManagementCaption: 'จัดการบุคลากรทั้งหมด',
-
- personnelTooltipTitle: 'ยังไม่มีข้อมูลบุคลากร',
- personnelTooltipCaption: 'คลิก + เพื่อเพิ่มบุคลากร',
- personnelAdd: 'เพิ่มบุคลากร',
-
- USER: 'พนักงาน',
- MESSENGER: 'พนักงานส่งเอกสาร',
- DELEGATE: 'ตัวแทน',
- AGENCY: 'เอเจนซี่',
-
- personnelStatTitle: 'สรุปจำนวนข้อมูล',
-
- personnelCardUserType: 'ประเภท',
- personnelCardTelephone: 'โทรศัพท์',
- personnelCardAge: 'อายุ',
- personnelCardNationality: 'สัญชาติ',
-};
diff --git a/src/i18n/th-th/product-service.ts b/src/i18n/th-th/product-service.ts
deleted file mode 100644
index f3e33d54..00000000
--- a/src/i18n/th-th/product-service.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-export default {
- productAndService: 'กลุ่มสินค้าและบริการ',
- productAndServiceAll: 'กลุ่มสินค้าและบริการทั้งหมด',
- productAndServiceType: 'ประเภทสินค้าและบริการ',
- productAndServiceGroupCode: 'รหัสกลุ่มสินค้าและบริการ',
- productAndServiceGroupName: 'ชื่อกลุ่มสินค้าและบริการ',
- productAndServiceTypeCode: 'รหัสประเภทสินค้าและบริการ',
- productAndServiceTypeName: 'ชื่อประเภทสินค้าและบริการ',
-
- service: 'บริการ {msg}',
- product: 'สินค้า',
- productGroup: 'กลุ่มสินค้า {name}',
- productType: 'ประเภทสินค้า {name}',
-
- messageTooltipNoProduct: 'ยังไม่มีกลุ่มสินค้าและบริการ',
- messageTooltipProductCreate: 'คลิก + เพื่อกลุ่มสินค้าและบริการ',
-
- addProduct: 'เพิ่มกลุ่มสินค้าและบริการ',
-
- productCreate: 'สร้างกลุ่มสินค้าและบริการ',
-
- productCode: 'รหัสสินค้า',
- productName: 'ชื่อสินค้า',
- productDetail: 'รายละเอียดสินค้า',
- productProcessingTime: 'ระยะเวลาดำเนินการ (วัน)',
- priceeInformation: 'ข้อมูลราคา',
- salePrice: 'ราคาขาย',
- agentPrice: 'ราคาตัวแทน',
- processingPrice: 'ราคาดำเนินการ',
-
- editService: 'แก้ไขบริการ',
- addService: 'เพิ่มบริการ',
- buttonAddProduct: 'เพิ่มสินค้า',
-
- editProduct: 'แก้ไขสินค้า',
- serviceInformation: 'ข้อมูลบริการ',
- workInformation: 'ข้อมูลงาน',
- workName: 'ชื่องาน',
- serviceCode: 'รหัสบริการ',
- serviceName: 'ชื่อบริการ',
- serviceDetail: 'รายละเอียดบริการ',
- productInWork: 'สินค้าภายในงาน',
- serviceAddProduct: 'เพิ่มสินค้า',
- processTime: 'ระยะเวลาดำเนินการ',
- day: 'วัน',
-
- noField: 'ยังไมมีฟิลด์',
-
- totalProductWork: 'รวมสินค้างาน',
- workNo: 'งานที่',
-
- addWork: 'เพิ่มงานใหม่',
-
- properties: 'คุณสมบัติ',
- noProperties: 'ยังไม่มีคุณสมบัติ',
- serviceProperties: 'คุณสมบัติของบริการ',
- workProperties: 'คุณสมบัติของงาน',
- propertiesInWork: 'คุณสมบัติภายในงาน',
- text: 'ข้อความ',
- number: 'ตัวเลข',
- date: 'วันที่',
- selection: 'ตัวเลือก',
- propertiesName: 'ชื่อคุณสมบัติ',
- decimal: 'ทศนิยม',
- decimalPlace: 'ตำแหน่ง',
- useComma: 'ใส่ comma',
- additional: 'เพิ่มเติม',
- telMaxLength: 'จำนวนหลัก',
- addSelection: 'เพิ่มตัวเลือก',
- selectAll: 'เลือกทั้งหมด',
-
- noProduct: 'ยังไม่มีสินค้า',
-};
diff --git a/src/i18n/th-th/status.ts b/src/i18n/th-th/status.ts
deleted file mode 100644
index 9c737811..00000000
--- a/src/i18n/th-th/status.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export default {
- statusCREATED: 'ดำเนินการอยู่',
- statusACTIVE: 'ดำเนินการอยู่',
- statusINACTIVE: 'ปิดดำเนินการ',
-};
diff --git a/src/i18n/th-th/user.ts b/src/i18n/th-th/user.ts
deleted file mode 100644
index 23499a75..00000000
--- a/src/i18n/th-th/user.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- firstname: 'ชื่อ',
- lastname: 'นามสกุล',
- fullname: 'ชื่อ-นามสกุล {msg}',
- userType: 'ประเภทผู้ใช้งาน',
- userRole: 'สิทธิ์ผู้ใช้งาน',
- userCode: 'รหัสพนักงาน',
-};
diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts
new file mode 100644
index 00000000..14bb00f9
--- /dev/null
+++ b/src/i18n/tha/index.ts
@@ -0,0 +1,483 @@
+export default {
+ general: {
+ ok: 'ตกลง',
+ save: 'บันทึก',
+ open: 'เปิด',
+ close: 'ปิด',
+ edit: 'แก้ไข',
+ cancel: 'ยกเลิก',
+ back: 'ย้อนกลับ',
+ undo: 'ย้อนกลับ',
+ search: 'ค้นหา',
+ download: 'ดาวน์โหลด',
+ delete: 'ลบ',
+ clear: 'ล้าง',
+ all: 'ทั้งหมด',
+ address: 'ที่อยู่',
+ add: 'เพิ่ม{text}',
+ telephone: 'เบอร์โทรศัพท์',
+ loading: 'กำลังโหลด',
+ confirm: 'ยืนยัน',
+ login: 'เข้าสู่ระบบ',
+ logout: 'ออกจากระบบ',
+ manage: 'จัดการ',
+ theme: 'ธีม',
+ light: 'สว่าง',
+ dark: 'มืด',
+ mode: 'โหมด',
+ dataSum: 'สรุปข้อมูล',
+ active: 'ใช้งาน',
+ inactive: 'ไม่ใช้งาน',
+ displayField: 'ฟิลด์แสดงผล',
+ order: 'ลำดับ',
+ name: 'ชื่อ',
+ fullName: 'ชื่อ-สกุล',
+ detail: 'รายละเอียด',
+ remark: 'หมายเหตุ',
+ createdAt: 'สร้างเมื่อ',
+ noData: 'ไม่มีข้อมูล',
+ noField: 'ไม่มีฟิลด์',
+ notFound: 'ไม่พบ',
+ viewDetail: 'ดูรายละเอียด',
+ type: 'ประเภท',
+ orderNumber: 'ลำดับที่',
+ recordPerPage: 'แสดงทีละ',
+ recordsPage: 'แสดง {resultcurrentPage} รายการจาก {total} รายการ',
+ day: 'วัน',
+ select: 'เลือก',
+ selectAll: 'เลือกทั้งหมด',
+ additional: 'เพิ่มเติม',
+ editImage: 'แก้ไขรูป',
+ upload: 'อัปโหลด',
+ baseOnDevice: 'สีตามอุปกรณ์',
+ clickToCreate: 'กดเพื่อสร้าง',
+ age: 'อายุ',
+ nationality: 'สัญชาติ',
+ times: 'ครั้งที่ {number}',
+ },
+ menu: {
+ dashboard: 'แดชบอร์ด',
+ dashboardCaption: 'แสดงข้อมูลสถิติ',
+
+ branch: 'จัดการสาขา',
+ branchCaption: 'จัดการสาขาภายในองค์กร',
+
+ user: 'จัดการบุคลากร',
+ userCaption: 'จัดการบุคลากรภายในองค์กร',
+
+ customer: 'จัดการลูกค้า',
+ customerCaption: 'จัดารลูกค้าภายในองค์กร',
+
+ product: 'สินค้าและบริการ',
+ productCaption: 'สินค้าและบริการ',
+
+ dms: 'จัดการเอกสาร',
+
+ quotation: 'ใบเสนอราคา',
+ quotationCaption: 'รายการใบเสนอราคา',
+
+ requestList: 'รายการคำขอ',
+ requestListCaption: 'แสดงรายการคำขอ',
+
+ workOrder: 'ใบสั่งงาน',
+ workOrderCaption: 'รายการใบสั่งงาน',
+
+ invoice: 'ใบรับสินค้า',
+ invoiceCaption: 'รายการใบรับสินค้า',
+
+ accountingLedger: 'รายการทางบัญชี',
+ accountingLedgerCaption: 'รายการบัญชีทั้งหมด',
+
+ report: 'รายงาน',
+ reportCaption: 'แสดงรายงาน',
+
+ profile: {
+ editPersonalInfo: 'แก้ไขข้อมูลส่วนตัว',
+ signature: 'ลายเซ็น',
+ mode: 'โหมด',
+ addSignature: 'เพิ่มลายเซ็น',
+ },
+ },
+ form: {
+ title: {
+ info: '{name}',
+ create: 'สร้าง {name}',
+ edit: 'แก้ไข {name}',
+ },
+ field: {
+ basicInformation: 'ข้อมูลพื้นฐาน',
+ address: 'ข้อมูลที่อยู่',
+ },
+ birthDate: 'วันเดือนปีเกิด',
+ email: 'อีเมล',
+ gender: 'เพศ',
+ telephone: 'เบอร์โทรศัพท์',
+ address: 'ที่อยู่ {suffix}',
+ province: 'จังหวัด',
+ district: 'อำเภอ',
+ subDistrict: 'ตำบล',
+ zipCode: 'รหัสไปรษณีย์',
+ prefixName: 'คํานําหน้า',
+ firstName: 'ชื่อ ภาษาไทย',
+ firstNameEN: 'ชื่อ ภาษาอังกฤษ',
+ lastName: 'นามสกุล ภาษาไทย',
+ lastNameEN: 'นามสกุล ภาษาอังกฤษ',
+ middleName: 'ชื่อกลาง',
+ middleNameEN: 'ชื่อกลาง ภาษาอังกฤษ',
+ error: {
+ required: 'จำเป็นต้องกรอกข้อมูลนี้',
+ select: 'โปรดเลือก',
+ selectField: 'โปรดเลือก{field}',
+ please: 'โปรดใส่ข้อมูล{msg}ให้ถูกต้อง',
+ invalid: 'ข้อมูลไม่ถูกต้อง',
+ invalidCustomeMessage: 'ข้อมูลไม่ถูกต้อง {msg}',
+ },
+ warning: {
+ title: 'แจ้งเตือน {msg}',
+ unsave:
+ 'คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก คุณต้องการปิดหน้าต่างนี้หรือไม่',
+ },
+ info: {
+ cantChange:
+ '{field} ไม่สามารถแก้ไขภายหลังได้ คุณต้องการใช้ "{name}" ใช่หรือไม่',
+ },
+ maxLength: 'จำนวนหลัก',
+ useComma: 'ใส่ Comma',
+ decimal: 'ทศนิยม',
+ decimalPlace: 'ตำแหน่ง',
+ selection: 'ตัวเลือก',
+ },
+ status: {
+ title: 'สถานะการใช้งาน',
+ CREATED: 'ใช้งานอยู่', // NOTE: Treated as active
+ ACTIVE: 'ใช้งานอยู่',
+ INACTIVE: 'ไม่ใช้งาน',
+ },
+ branch: {
+ office: 'สำนักงาน',
+ card: {
+ orderNumber: 'เลขที่',
+ branchLabelName: 'ชื่อ',
+ branchLabelAddress: 'ที่อยู่',
+ branchLabelTel: 'เบอร์โทรศัพท์',
+ branchLabelType: 'ประเภท',
+ branchLabel: 'สาขา',
+ branchHQLabel: 'สำนักงานใหญ่',
+ },
+ page: {
+ captionManage: 'จัดการ',
+ },
+ form: {
+ title: {
+ branchLabel: 'สาขา',
+ branchHQLabel: 'สำนักงานใหญ่',
+ },
+ group: {
+ contact: 'ติดต่อ',
+ location: 'ที่ตั้ง',
+ bankAccount: 'บัญชีธนาคาร',
+ admin: 'ผู้ดูแล',
+ },
+ shareLocation: 'แชร์ตำแหน่ง',
+ abbrev: 'ชื่อย่อ',
+ code: 'รหัสสำนักงานใหญ่',
+ codeBranch: 'รหัสสาขา',
+ taxNo: 'เลขประจำตัวผู้เสียภาษี',
+ contactName: 'ชื่อผู้ติดต่อ',
+ contactTelephone: 'เบอร์ผู้ติดต่อ',
+ branchName: 'ชื่อสาขา',
+ branchNameEN: 'ชื่อสาขา (EN)',
+ headofficeName: 'ชื่อสำนักงานใหญ่',
+ headofficeNameEN: 'ชื่อสำนักงานใหญ่ (EN)',
+ bankAccountNo: 'บัญชีที่ {no}',
+ bankAccountStatus: 'สถานะบัญชี',
+ bank: 'ธนาคาร',
+ bankBranch: 'สาขาธนาคาร',
+ bankAccountNumber: 'เลขบัญชี',
+ bankAccountName: 'ชื่อบัญชี',
+ bankAccountType: 'ประเภทบัญชี',
+ },
+ },
+ personnel: {
+ title: 'จัดการบุคลากร',
+ caption: 'จัดการบุคลากรทั้งหมด',
+ personnel: 'บุคลากร',
+ age: 'อายุ',
+ USER: 'พนักงาน',
+ MESSENGER: 'พนักงานส่งเอกสาร',
+ DELEGATE: 'ตัวแทน',
+ AGENCY: 'เอเจนซี่',
+ addTitle: 'เพิ่มบุคลากร',
+ tooltipTitle: 'ยังไม่มีข้อมูลบุคลากร',
+ tooltipCaption: 'คลิก + เพื่อเพิ่มบุคลากร',
+ form: {
+ personalInformation: 'ข้อมูลบุคคล',
+ addressInformation: 'ข้อมูลที่อยู่พนักงาน',
+ workInformation: 'ข้อมูลการทำงาน',
+ username: 'ชื่อผู้ใช้งาน',
+ userType: 'ประเภทผู้ใช้งาน',
+ userRole: 'สิทธิ์ผู้ใช้งาน',
+ prefixName: 'คํานําหน้า',
+ firstName: 'ชื่อ ภาษาไทย',
+ lastName: 'นามสกุล ภาษาไทย',
+ firstNameEN: 'ชื่อ ภาษาอังกฤษ',
+ lastNameEN: 'นามสกุล ภาษาอังกฤษ',
+ middleName: 'ชื่อกลาง',
+ middleNameEN: 'ชื่อกลาง ภาษาอังกฤษ',
+ regisNo: 'เลขประจำตัว นจ. 16 (เลขที่ขึ้นทะเบียน)',
+ startDate: 'วันที่เริ่มงาน',
+ retireDate: 'วันที่พ้นสภาพพนักงาน',
+ responsibleArea: 'พื้นที่ ที่รับผิดชอบในการส่งเอกสาร',
+ discount: 'เงื่อนไขส่วนลดบริการต่างๆ ของตัวแทน',
+ sourceNationality: 'สัญชาติต้นทาง',
+ importNationality: 'นำเข้าสัญชาติ',
+ trainingPlace: 'สถานที่อบรม',
+ checkpoint: 'ด่าน',
+ checkpointEN: 'ด่าน ภาษาอังกฤษ',
+ attachment: 'แบบเอกสารประจำตัว',
+ },
+ },
+ customer: {
+ employer: 'นายจ้าง',
+ employee: 'ลูกจ้าง',
+ employerLegalEntity: 'นิติบุคคล',
+ employerNaturalPerson: 'บุคคลธรรมดา',
+ employerType: 'ประเภทนายจ้าง',
+ form: {
+ selectType: 'เลือกประเภท',
+ group: {
+ branch: 'ข้อมูลสาขา',
+ },
+
+ prefix: {
+ mr: 'Mr.',
+ mrs: 'Mrs.',
+ miss: 'Miss.',
+ },
+
+ firstName: 'ชื่อ ภาษาไทย',
+ lastName: 'นามสกุล ภาษาไทย',
+ firstNameEN: 'ชื่อ ภาษาอังกฤษ',
+ lastNameEN: 'นามสกุล ภาษาอังกฤษ',
+
+ cardNumber: 'บัตรประชาชนเลขที่',
+
+ prefixName: 'คํานําหน้า',
+ legalPersonNo: 'ทะเบียนนิติบุคคลเลขที่',
+ registerName: 'ชื่อบริษัท',
+ registerNameEN: 'ชื่อบริษัท (EN)',
+ registerDate: 'จดทะเบียนเมื่อ',
+ registerCompanyName: 'จดทะเบียนชื่อ',
+ authorizedCapital: 'ทุนที่จดทะเบียน',
+
+ workplace: 'สถานที่ทํางาน',
+ workplaceEN: 'สถานที่ทํางาน (EN)',
+ address: 'ที่อยู่',
+ addressEN: 'ที่อยู่ (EN)',
+ branchCode: 'รหัสสาขา',
+ customerCode: 'รหัสนายจ้าง',
+ legalPersonCode: 'รหัสนิติบุคคล',
+
+ codeAbbrev: 'ชื่อย่อบริษัท',
+ codeNumber: 'เลขประจำตัวบริษัท',
+ registeredBranch: 'สาขาที่ลงทะเบียน',
+ customerName: 'ชื่อบริษัท',
+ customerNameEN: 'ชื่อบริษัท (EN)',
+ personName: 'ชื่อลูกค้า',
+ taxIdentificationNumber: 'หมายเลขทะเบียนนิติบุคคล',
+ branch: {
+ title: 'สาขาที่ {name}',
+ },
+ headQuarters: {
+ title: 'สำนักงานใหญ่',
+ },
+ },
+
+ table: {
+ orderNumber: 'ลําดับ',
+ fullname: 'ชื่อ-นามสกุล',
+ businessTypePure: 'ประเภทกิจการ',
+ address: 'ที่อยู่',
+ workPlace: 'สถานที่ทํางาน',
+ contactName: 'ชื่อผู้ติดต่อ',
+ contactPhone: 'โทรศัพท์ผู้ติดต่อ',
+ },
+ },
+ customerEmployee: {
+ branch: 'สาขา',
+ form: {
+ group: {
+ personalInfo: 'ข้อมูลส่วนตัว',
+ passport: 'หนังสือเดินทาง',
+ visa: 'วีซ่า',
+ healthCheck: 'ตรวจสุขภาพ',
+ workHistory: 'ประวัติการทำง่าน',
+ other: 'อื่นๆ',
+ family: 'ครอบครัว',
+ },
+ employerBranch: 'สาขานายจ้าง',
+ employeeCode: 'รหัสลูกจ้าง',
+ nrcNo: 'เลขบัตรประจำตัวคนซึ่งไม่มีสัญชาติไทย (N.R.C No.)',
+
+ passportNo: 'หมายเลขหนังสือเดินทาง',
+ passportRef:
+ 'เลขอ้างอิงเลขที่หนังสือเดินทางเดิม (กรณีเปลี่ยนหนังสือเดินทาง)',
+ passportType: 'ประเภทหนังสือเดินทาง',
+ passportPlace: 'สถานที่ออกหนังสือเดินทาง',
+ passportIssuer: 'ประเทศที่ออกหนังสือเดินทาง',
+ passportIssueDate: 'วันออกอายุหนังสือเดินทาง',
+ passportExpireDate: 'วันหมดอายุหนังสือเดินทาง',
+
+ addressSame: 'ใช้ที่อยู่เดียวกับนายจ้าง',
+ addressCustom: 'กำหนดที่อยู่เอง',
+
+ visaType: 'ประเภทการตรวจลงตรา',
+ visaNo: 'เลขที่ตรวจลงตรา',
+ visaIssuance: 'ออกให้วันที่',
+ visaExpire: 'ใช้ได้ถึงวันที่',
+ visaPlace: 'ออกให้ที่',
+ visaStayUntil: 'ให้อยู่ในราชอาณาจักรถึงวันที่',
+ visaTM6: 'เลขที่ใบ ตม.6 (ใบขาเข้า)',
+ visaEnter: 'วันที่เดินทางเข้ามาในประเทศ',
+
+ employerSelect: {
+ branchName: 'ชื่อสาขา',
+ customerName: 'ชื่อนายจ้าง',
+ },
+ },
+ formHealthCheck: {
+ title: 'ตรวจสุขภาพ',
+
+ result: 'ผลการตรวจ',
+ checkupType: 'ประเภทการตรวจ',
+ hospital: 'โรงพยาบาล',
+ medicalBenefit: 'ประเภทสิทธิประโยชน์ทางการแพทย์',
+ coverageStartDate: 'วันที่เริ่มคุ้มครอง',
+ coverageExpireDate: 'วันที่สิ้นสุดการคุ้มครอง',
+ insuranceCompany: 'บริษัทประกัน',
+ },
+ formWorkHistory: {
+ title: 'ประวัติการทำงาน',
+
+ employerName: 'ชื่อนายจ้าง',
+ jobType: 'ประเภทงาน',
+ jobPosition: 'ตำแหน่งงาน',
+ workplace: 'สถานที่ทำงาน',
+ workUntil: 'อนุญาตทำงานจนถึง',
+ permitNo: 'เลขที่ใบอนุญาตทำงาน',
+ permitIssueDate: 'วันที่ออกใบอนุญาตทำงาน',
+ permitExpireDate: 'วันที่หมดอายุใบอนุญาตทำงาน',
+ },
+ formFamily: {
+ citizenId:
+ 'เลขประจำตัวประชาชนของผู้ทำงาน (เลขประจำตัวประชาชนจากประเทศต้นกำเนิด)',
+ father: 'บิดา',
+ fatherBirthPlace: 'สถานที่เกิดของบิดา',
+ mother: 'มารดา',
+ motherBirthPlace: 'สถานที่เกิดของมารดา',
+ },
+ },
+ customerBranch: {
+ tab: {
+ main: 'เกี่ยวกับ',
+ address: 'ที่อยู่',
+ business: 'ธุรกิจ',
+ contact: 'ติดต่อ',
+ attachment: 'เอกสารเพิ่มเติม',
+ },
+ form: {
+ title: 'สาขา',
+ no: 'เลขที่สาขา',
+ code: 'รหัสสาขา',
+ taxNo: 'เลขทะเบียนนิติบุคคล',
+ name: 'ชื่อสาขา',
+ nameEN: 'ชื่อสาขา (ภาษาอังกฤษ)',
+ authorizedCapital: 'ทุนจดทะเบียน',
+ registerName: 'ชื่อที่จดทะเบียน',
+ registerDate: 'วันที่จดทะเบียน',
+ telephone: 'โทรศัพท์',
+ attachment: 'เอกสารเพิ่มเติม',
+ },
+ },
+ productService: {
+ title: 'สินค้าและบริการ',
+ caption: 'จัดการสินค้าและบริการทั้งหมด',
+ group: {
+ title: 'กลุ่มสินค้าและบริการ',
+ withName: 'กลุ่ม {name}',
+ addTitle: 'เพิ่มกลุ่มสินค้าและบริการ',
+ code: 'รหัสสินค้าและบริการ',
+ name: 'ชื่อสินค้าและบริการ',
+ },
+ type: {
+ title: 'ปรเภทสินค้าและบริการ',
+ withName: 'ประเภท {name}',
+ addTitle: 'เพิ่มประเภทสินค้าและบริการ',
+ code: 'รหัสสินค้าและบริการ',
+ name: 'ชื่อสินค้าและบริการ',
+ },
+ service: {
+ title: 'บริการ',
+ totalWork: 'งานทั้งหมด',
+ code: 'รหัสบริการ',
+ name: 'ชื่อบริการ',
+ work: 'งาน',
+ workName: 'ชื่องาน',
+ showTotalPrice: 'แสดงราคารวม',
+ addTitle: 'เพิ่มบริการ',
+ registeredBranch: 'สาขาที่ลงทะเบียน',
+ information: 'ข้อมูลบริการ',
+ workInformation: 'ข้อมูลงาน',
+ serviceProperties: 'คุณสมบัติของบริการ',
+ propertiesName: 'ชื่อคุณสมบัติ',
+ properties: 'คุณสมบัติ',
+ noProperties: 'ยังไม่มีคุณสมบัติ',
+ propertiesInWork: 'คุณสมบัติภายในงาน',
+ productInWork: 'สินค้าภายในงาน',
+ totalProductWork: 'รวมสินค้างาน',
+ list: 'รายการ',
+ addWork: 'เพิ่มงาน',
+ },
+ product: {
+ title: 'สินค้า',
+ code: 'รหัสสินค้า',
+ name: 'ชื่อสินค้า',
+ registeredBranch: 'สาขาที่ลงทะเบียน',
+ noProduct: 'ยังไม่มีสินค้า',
+ allProduct: 'สินค้าทั้งหมด',
+ addTitle: 'เพิ่มสินค้า',
+ processingTime: 'ระยะเวลาดำเนินการ',
+ processingTimeDay: 'ระยะเวลาดำเนินการ (วัน)',
+ priceInformation: 'ข้อมูลราคา',
+ salePrice: 'ราคาขาย',
+ agentPrice: 'ราคาตัวแทน',
+ processingPrice: 'ราคาดำเนินการ',
+ },
+ },
+
+ backend: {
+ sameBranchCodeExists: 'ตัวย่อสำนักงานใหญ่นี้ถูกใช้แล้ว',
+ },
+
+ dialog: {
+ title: {
+ incompleteDataEntry: 'กรอกข้อมูลไม่ครบ',
+ confirmChangeStatus: 'ยืนยันการเปลี่ยนสถานะ',
+ confirmDelete: 'ยืนยันการลบ',
+ },
+ message: {
+ incompleteDataEntry: 'กรอกข้อมูลไม่ครบในหน้า {tap}',
+ confirmChangeStatusOn: 'คุณต้องการเปิดใช่หรือไม่',
+ confirmChangeStatusOff: 'คุณต้องการปิดใช่หรือไม่',
+ confirmDelete: 'คุณต้องการลบรายการนี้ใช่หรือไม่',
+ },
+ action: {
+ ok: 'ยืนยัน',
+ save: 'บันทึก',
+ saveAndClose: 'บันทึกและปิดหน้าต่าง',
+ close: 'ปิดหน้าต่าง',
+ delete: 'ลบ',
+ cancel: 'ยกเลิก',
+ },
+ },
+};
diff --git a/src/layouts/DrawerComponent.vue b/src/layouts/DrawerComponent.vue
index eb92e04a..4a2e677d 100644
--- a/src/layouts/DrawerComponent.vue
+++ b/src/layouts/DrawerComponent.vue
@@ -27,14 +27,14 @@ onMounted(async () => {
labelMenu.value = [
{
- label: 'drawerDashboard',
+ label: 'menu.dashboard',
icon: 'isax-element-35',
route: '',
isax: true,
disabled: true,
},
{
- label: 'drawerBranchManagement',
+ label: 'menu.branch',
icon: 'mdi-chart-donut',
route: '/branch-management',
hidden:
@@ -47,7 +47,7 @@ onMounted(async () => {
: true,
},
{
- label: 'drawerPersonnelManagement',
+ label: 'menu.user',
icon: 'fa6-solid:building-user',
route: '/personnel-management',
hidden:
@@ -60,13 +60,13 @@ onMounted(async () => {
: true,
},
{
- label: 'drawerCustomerManagement',
+ label: 'menu.customer',
icon: 'isax-frame5',
route: '/customer-management',
isax: true,
},
{
- label: 'drawerProductsAndServices',
+ label: 'menu.product',
icon: 'heroicons-truck-solid',
route: '/product-service',
},
@@ -76,40 +76,40 @@ onMounted(async () => {
route: '/document-management',
},
{
- label: 'drawerQuotation',
+ label: 'menu.quotation',
icon: 'mdi-file-document',
route: '',
disabled: true,
},
{
- label: 'drawerRequestList',
+ label: 'menu.requestList',
icon: 'isax-device-message5',
route: '',
disabled: true,
isax: true,
},
{
- label: 'drawerWorkOrder',
+ label: 'menu.workOrder',
icon: 'isax-receipt-2-15',
route: '',
disabled: true,
isax: true,
},
{
- label: 'drawerInvoice',
+ label: 'menu.invoice',
icon: 'material-symbols:box',
route: '',
disabled: true,
},
{
- label: 'drawerAccountingLedger',
+ label: 'menu.accountingLedger',
icon: 'isax-dollar-circle4',
route: '',
isax: true,
disabled: true,
},
{
- label: 'drawerReport',
+ label: 'menu.report',
icon: 'mdi-file-document',
route: '',
disabled: true,
@@ -237,13 +237,13 @@ function branchSetting() {}
>
{{
- ($i18n.locale === 'en-US'
+ ($i18n.locale === 'eng'
? currentMyBranch?.nameEN
: currentMyBranch?.name) ?? '-'
}}
{{
- ($i18n.locale === 'en-US'
+ ($i18n.locale === 'eng'
? currentMyBranch?.nameEN
: currentMyBranch?.name) ?? '-'
}}
diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue
index ac7250b0..21823ee3 100644
--- a/src/layouts/MainLayout.vue
+++ b/src/layouts/MainLayout.vue
@@ -62,8 +62,8 @@ const language: {
icon: string;
date: string;
}[] = [
- { value: 'th-th', label: 'ไทย', icon: 'th', date: 'th' },
- { value: 'en-US', label: 'English', icon: 'us', date: 'en-gb' },
+ { value: 'tha', label: 'ไทย', icon: 'th', date: 'th' },
+ { value: 'eng', label: 'English', icon: 'us', date: 'en-gb' },
];
const notiOpen = ref(false);
@@ -134,9 +134,9 @@ watch(
() => {
localStorage.setItem('currentLanguage', currentLanguage.value);
if (rawOption.value) {
- if (locale.value === 'en-US')
+ if (locale.value === 'eng')
optionStore.globalOption = rawOption.value.eng;
- if (locale.value === 'th-th')
+ if (locale.value === 'tha')
optionStore.globalOption = rawOption.value.tha;
}
},
@@ -149,18 +149,18 @@ onMounted(async () => {
const getCurLang = localStorage.getItem('currentLanguage');
if (getCurLang) currentLanguage.value = getCurLang;
if (currentLanguage.value === 'English') {
- locale.value = 'en-US';
+ locale.value = 'eng';
setLocale('en-gb');
}
if (currentLanguage.value === 'ไทย') {
- locale.value = 'th-th';
+ locale.value = 'tha';
setLocale('th');
}
const resultOption = await fetch('/option/option.json');
rawOption.value = await resultOption.json();
- if (locale.value === 'en-US') optionStore.globalOption = rawOption.value.eng;
- if (locale.value === 'th-th') optionStore.globalOption = rawOption.value.tha;
+ if (locale.value === 'eng') optionStore.globalOption = rawOption.value.eng;
+ if (locale.value === 'tha') optionStore.globalOption = rawOption.value.tha;
const user = getUsername();
const uid = getUserId();
@@ -254,7 +254,7 @@ onMounted(async () => {
}
"
/>
-
+
{
height="550px"
v-model:modal="canvasModal"
no-app-box
- :title="$t('addSignature')"
+ :title="$t('menu.profile.addSignature')"
:close="() => (canvasModal = false)"
>
diff --git a/src/layouts/ProfileMenu.vue b/src/layouts/ProfileMenu.vue
index 7e8802e1..cb595caa 100644
--- a/src/layouts/ProfileMenu.vue
+++ b/src/layouts/ProfileMenu.vue
@@ -24,19 +24,19 @@ const currentTheme = ref();
const options = ref([
{
icon: 'mdi-account',
- label: 'editPersonalInfo',
+ label: 'menu.profile.editPersonalInfo',
value: 'op1',
color: 'grey',
},
{
icon: 'mdi-signature-freehand',
- label: 'signature',
+ label: 'menu.profile.signature',
value: 'op2',
color: 'grey',
},
{
icon: 'mdi-brightness-6',
- label: 'mode',
+ label: 'menu.profile.mode',
value: 'op3',
color: 'grey',
},
@@ -334,7 +334,7 @@ onMounted(async () => {
{
-
+
{
{{ $t(op.label) }}
- {{ $t(currentTheme) }}
+ {{ $t(`general.${currentTheme}`) }}
@@ -389,7 +389,7 @@ onMounted(async () => {
- {{ $t(mode.label) }}
+ {{ $t(`general.${mode.label}`) }}
@@ -408,7 +408,7 @@ onMounted(async () => {
unelevated
class="q-ma-md app-text-negative"
:class="{ dark: $q.dark.isActive }"
- :label="$t('logout')"
+ :label="$t('general.logout')"
@click="$emit('logout')"
id="btn-logout"
style="background-color: hsla(var(--negative-bg) / 0.1)"
@@ -421,7 +421,7 @@ onMounted(async () => {
color="primary"
unelevated
class="q-ma-md app-text-negative"
- :label="$t('login')"
+ :label="$t('general.login')"
@click="$emit('login')"
id="btn-login"
v-close-popup
diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue
index df584464..993718ab 100644
--- a/src/pages/01_branch-management/MainPage.vue
+++ b/src/pages/01_branch-management/MainPage.vue
@@ -54,34 +54,34 @@ const columns = [
{
name: 'orderNumber',
align: 'center',
- label: 'orderNumber',
+ label: 'general.orderNumber',
field: 'branchNo',
},
{
name: 'branchLabelName',
align: 'left',
- label: 'office',
+ label: 'branch.office',
field: 'name',
sortable: true,
},
{
name: 'branchLabelAddress',
align: 'left',
- label: 'address',
+ label: 'general.address',
field: 'address',
sortable: true,
},
{
name: 'branchLabelTel',
align: 'left',
- label: 'formDialogInputTelephone',
+ label: 'general.telephone',
field: 'telephoneNo',
},
{
name: 'branchLabelType',
align: 'left',
- label: 'type',
+ label: 'general.type',
field: 'isHeadOffice',
},
] satisfies QTableProps['columns'];
@@ -182,13 +182,13 @@ async function calculateStats() {
{
icon: 'mdi-office-building-outline',
count: _stats.hq,
- label: 'branchHQLabel',
+ label: 'branch.card.branchHQLabel',
color: 'pink',
},
{
icon: 'mdi-home-group',
count: _stats.br,
- label: 'branchLabel',
+ label: 'branch.card.branchLabel',
color: 'purple',
},
];
@@ -196,10 +196,10 @@ async function calculateStats() {
}
onMounted(async () => {
- utilsStore.currentTitle.title = 'branchManagement';
+ utilsStore.currentTitle.title = 'menu.branch';
utilsStore.currentTitle.path = [
{
- text: 'branchManagementCaption',
+ text: 'branch.page.captionManage',
i18n: true,
handler: () => {
fieldSelectedBranch.value.value = 'branchHQLabel';
@@ -257,7 +257,7 @@ const fieldSelectedBranch = ref<{
label: string;
value: string;
}>({
- label: t('branchHQLabel'),
+ label: t('branch.form.title.branchHQLabel'),
value: 'branchHQLabel',
});
@@ -516,13 +516,13 @@ async function triggerChangeStatus(
color: status !== 'INACTIVE' ? 'warning' : 'info',
icon:
status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-message-processing-outline',
- title: t('confirmChangeStatusTitle'),
+ title: t('dialog.title.confirmChangeStatus'),
actionText:
- status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),
+ status !== 'INACTIVE' ? t('general.close') : t('general.open'),
message:
status !== 'INACTIVE'
- ? t('confirmChangeStatusOffMessage')
- : t('confirmChangeStatusOnMessage'),
+ ? t('dialog.message.confirmChangeStatusOff')
+ : t('dialog.message.confirmChangeStatusOn'),
action: async () => {
const res = await branchStore.editById(id, {
status: status !== 'INACTIVE' ? 'INACTIVE' : 'ACTIVE',
@@ -623,21 +623,16 @@ function changeTitle(
formType: 'edit' | 'create' | 'delete' | 'view',
typeBranch: 'headOffice' | 'subBranch',
) {
- if (typeBranch === 'headOffice') {
- return formType === 'create'
- ? t('formDialogTitleCreateHeadOffice')
- : formType === 'view'
- ? t('formDialogTitleViewHeadOffice')
- : t('formDialogTitleEditHeadOffice');
- }
- if (typeBranch === 'subBranch') {
- return formType === 'create'
- ? t('formDialogTitleCreateSubBranch')
- : formType === 'view'
- ? t('formDialogTitleViewSubBranch')
- : t('formDialogTitleEditSubBranch');
- }
- return '';
+ const _type =
+ typeBranch === 'headOffice'
+ ? 'branch.card.branchHQLabel'
+ : 'branch.card.branchHQLabel';
+
+ return formType === 'create'
+ ? t('form.title.create', { name: t(_type) })
+ : formType === 'view'
+ ? t(_type)
+ : t('general.edit');
}
function handleHold(node: BranchWithChildren) {
@@ -672,7 +667,7 @@ watch(
watch(currentHq, () => {
const tmp: typeof utilsStore.currentTitle.path = [
{
- text: 'branchManagementCaption',
+ text: 'branch.page.captionManage',
i18n: true,
handler: () => {
expandedTree.value = expandedTree.value.filter(
@@ -701,7 +696,7 @@ watch(currentHq, () => {
- {{ $t('branchStatTitle') }}
+ {{ $t('general.dataSum') }}
{
triggerCreate('headOffice')"
/>
@@ -901,7 +897,7 @@ watch(currentHq, () => {
for="input-search"
outlined
dense
- :label="$t('search')"
+ :label="$t('general.search')"
class="q-mr-md col-12 col-md-4"
:bg-color="$q.dark.isActive ? 'dark' : 'white'"
v-model="inputSearch"
@@ -929,10 +925,10 @@ watch(currentHq, () => {
:for="'field-select-status'"
emit-value
:options="[
- { label: $t('all'), value: 'all' },
- { label: $t('statusACTIVE'), value: 'statusACTIVE' },
+ { label: $t('general.all'), value: 'all' },
+ { label: $t('status.ACTIVE'), value: 'statusACTIVE' },
{
- label: $t('statusINACTIVE'),
+ label: $t('status.INACTIVE'),
value: 'statusINACTIVE',
},
]"
@@ -943,9 +939,12 @@ watch(currentHq, () => {
id="select-field"
for="select-field"
:options="
- fieldDisplay.map((v) => ({ label: $t(v), value: v }))
+ fieldDisplay.map((v) => ({
+ label: $t(`branch.card.${v}`),
+ value: v,
+ }))
"
- :display-value="$t('displayField')"
+ :display-value="$t('general.displayField')"
:hide-dropdown-icon="$q.screen.lt.sm"
class="col q-mx-sm"
v-model="fieldSelected"
@@ -1018,7 +1017,7 @@ watch(currentHq, () => {
.filter((v) => {
if (
statusFilter === 'statusACTIVE' &&
- v.status === 'INACTIVE'
+ v.status !== 'ACTIVE'
) {
return false;
}
@@ -1029,7 +1028,7 @@ watch(currentHq, () => {
return false;
}
- const terms = `${v.code} ${$i18n.locale === 'en-US' ? v.nameEN : v.name} ${v.telephoneNo}`;
+ const terms = `${v.code} ${$i18n.locale === 'eng' ? v.nameEN : v.name} ${v.telephoneNo}`;
if (inputSearch && !terms.includes(inputSearch)) {
return false;
}
@@ -1185,8 +1184,8 @@ watch(currentHq, () => {
{{
props.row.isHeadOffice
- ? $t('branchHQLabel')
- : $t('branchLabel')
+ ? $t('branch.card.branchHQLabel')
+ : $t('branch.card.branchLabel')
}}
@@ -1232,7 +1231,7 @@ watch(currentHq, () => {
style="color: hsl(var(--green-6-hsl))"
/>
- {{ $t('viewDetail') }}
+ {{ $t('general.viewDetail') }}
@@ -1270,7 +1269,7 @@ watch(currentHq, () => {
style="color: hsl(var(--cyan-6-hsl))"
/>
- {{ $t('edit') }}
+ {{ $t('general.edit') }}
{
}"
/>
- {{ $t('delete') }}
+ {{ $t('general.delete') }}
@@ -1329,8 +1328,8 @@ watch(currentHq, () => {
{{
props.row.status !== 'INACTIVE'
- ? $t('switchOnLabel')
- : $t('switchOffLabel')
+ ? $t('general.open')
+ : $t('general.close')
}}
@@ -1378,20 +1377,20 @@ watch(currentHq, () => {
:data="{
branchLabelCode: props.row.code,
branchLabelName:
- $i18n.locale === 'en-US'
+ $i18n.locale === 'eng'
? props.row.nameEN
: props.row.name,
branchLabelTel: props.row.contact
.map((c: BranchContact) => c.telephoneNo)
.join(','),
branchLabelAddress:
- $i18n.locale === 'en-US'
+ $i18n.locale === 'eng'
? `${props.row.addressEN || ''} ${props.row.subDistrict?.nameEN || ''} ${props.row.district?.nameEN || ''} ${props.row.province?.nameEN || ''}`
: `${props.row.address || ''} ${props.row.subDistrict?.name || ''} ${props.row.district?.name || ''} ${props.row.province?.name || ''}`,
branchLabelType: $t(
props.row.isHeadOffice
- ? 'branchHQLabel'
- : 'branchLabel',
+ ? 'branch.branchHQLabel'
+ : 'branch.branchLabel',
),
branchImgUrl: `/branch/${props.row.id}/branch-image`,
}"
@@ -1443,7 +1442,7 @@ watch(currentHq, () => {
style="color: hsl(var(--green-6-hsl))"
/>
- {{ $t('viewDetail') }}
+ {{ $t('general.viewDetail') }}
@@ -1481,7 +1480,7 @@ watch(currentHq, () => {
style="color: hsl(var(--cyan-6-hsl))"
/>
- {{ $t('edit') }}
+ {{ $t('general.edit') }}
{
}"
/>
- {{ $t('delete') }}
+ {{ $t('generaldelete') }}
@@ -1540,8 +1539,8 @@ watch(currentHq, () => {
{{
props.row.status !== 'INACTIVE'
- ? $t('switchOnLabel')
- : $t('switchOffLabel')
+ ? $t('general.open')
+ : $t('general.close')
}}
@@ -1628,19 +1627,19 @@ watch(currentHq, () => {
{
:outlined="true"
:readonly="formType === 'view'"
:view="isSubCreate"
- title="formDialogTitleInformation"
+ title="form.field.basicInformation"
/>
{
v-model:contact-name="formData.contactName"
v-model:line-id="formData.lineId"
:separator="true"
- title="formDialogTitleContact"
+ title="branch.form.group.contact"
:dense="true"
:outlined="true"
/>
@@ -1698,11 +1697,7 @@ watch(currentHq, () => {
outlined
separator
prefix-id="default"
- :title="
- $t(
- `${!formData.codeHeadOffice ? 'formDialogTitleAddress' : 'branchLabelAddress'}`,
- )
- "
+ :title="$t('form.address')"
v-model:address="formData.address"
v-model:addressEN="formData.addressEN"
v-model:province-id="formData.provinceId"
@@ -1716,7 +1711,7 @@ watch(currentHq, () => {
:separator="true"
v-model:latitude="formData.latitude"
v-model:longitude="formData.longitude"
- title="formDialogTitleLocation"
+ title="branch.form.group.location"
/>
{
/>
@@ -1754,8 +1749,7 @@ watch(currentHq, () => {
ref="formDialogRef"
v-model:drawerOpen="modalDrawer"
:category="changeTitle(formType, formTypeBranch)"
- :title="$i18n.locale === 'en-US' ? formData.nameEN : formData.name"
- :titleFormAddress="$t('formDialogTitleAddress')"
+ :title="$i18n.locale === 'eng' ? formData.nameEN : formData.name"
:addressSeparator="true"
:undo="() => undo()"
:isEdit="formType === 'edit'"
@@ -1853,19 +1847,19 @@ watch(currentHq, () => {
{
:outlined="true"
:readonly="formType === 'view'"
view
- title="formDialogTitleInformation"
+ title="form.field.basicInformation"
class="q-mb-xl"
/>
{
outlined
separator
prefix-id="default"
- :title="
- $t(
- `${!formData.headOfficeId ? 'formDialogTitleAddress' : 'branchLabelAddress'}`,
- )
- "
+ :title="$t('form.address')"
:readonly="formType === 'view'"
v-model:address="formData.address"
v-model:addressEN="formData.addressEN"
@@ -1944,7 +1934,7 @@ watch(currentHq, () => {
/>
{
{
{{
currentNode.status !== 'INACTIVE'
- ? $t('switchOnLabel')
- : $t('switchOffLabel')
+ ? $t('general.open')
+ : $t('general.close')
}}
diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue
index 9f850b03..e2e76d66 100644
--- a/src/pages/02_personnel-management/MainPage.vue
+++ b/src/pages/02_personnel-management/MainPage.vue
@@ -96,32 +96,32 @@ const modeView = ref(false);
const fieldSelectedOption = ref<{ label: string; value: string }[]>([
{
- label: 'orderNumber',
+ label: 'general.order',
value: 'orderNumber',
},
{
- label: 'fullname',
+ label: 'general.fullName',
value: 'name',
},
{
- label: 'type',
+ label: 'general.type',
value: 'type',
},
{
- label: 'telephone',
+ label: 'general.telephone',
value: 'telephoneNo',
},
{
- label: 'personnelCardAge',
+ label: 'personnel.age',
value: 'birthDate',
},
{
- label: 'formDialogInputEmail',
+ label: 'form.email',
value: 'email',
},
{
- label: 'userRole',
+ label: 'personnel.form.userRole',
value: 'userRole',
},
]);
@@ -247,45 +247,45 @@ const columns = [
{
name: 'orderNumber',
align: 'center',
- label: 'orderNumber',
+ label: 'general.order',
field: 'branchNo',
},
{
name: 'name',
align: 'left',
- label: 'fullname',
+ label: 'general.fullName',
field: 'firstName',
},
{
name: 'type',
align: 'left',
- label: 'type',
+ label: 'general.type',
field: 'type',
},
{
name: 'telephoneNo',
align: 'left',
- label: 'telephone',
+ label: 'general.telephone',
field: 'telephoneNo',
},
{
name: 'birthDate',
align: 'left',
- label: 'personnelCardAge',
+ label: 'personnel.age',
field: 'birthDate',
},
{
name: 'email',
align: 'left',
- label: 'formDialogInputEmail',
+ label: 'form.email',
field: 'email',
},
{
name: 'userRole',
align: 'left',
- label: 'userRole',
+ label: 'personnel.form.userRole',
field: 'userRole',
},
] satisfies QTableProps['columns'];
@@ -367,7 +367,7 @@ async function openDialog(
id: user.id,
img: `${user.profileImageUrl}`,
name:
- locale.value === 'en-US'
+ locale.value === 'eng'
? `${user.firstNameEN} ${user.lastNameEN}`
: `${user.firstName} ${user.lastName}`,
male: user.gender === 'male',
@@ -542,13 +542,13 @@ async function triggerChangeStatus(id: string, status: string) {
color: status !== 'INACTIVE' ? 'warning' : 'info',
icon:
status !== 'INACTIVE' ? 'mdi-alert' : 'mdi-message-processing-outline',
- title: t('confirmChangeStatusTitle'),
+ title: t('dialog.title.confirmChangeStatus'),
actionText:
- status !== 'INACTIVE' ? t('switchOffLabel') : t('switchOnLabel'),
+ status !== 'INACTIVE' ? t('general.close') : t('general.open'),
message:
status !== 'INACTIVE'
- ? t('confirmChangeStatusOffMessage')
- : t('confirmChangeStatusOnMessage'),
+ ? t('dialog.message.confirmChangeStatusOff')
+ : t('dialog.message.confirmChangeStatusOn'),
action: async () => {
await toggleStatus(id).then(resolve).catch(reject);
},
@@ -563,8 +563,10 @@ async function assignFormData(idEdit: string) {
if (foundUser) {
currentUser.value = foundUser;
- infoPersonId.value = currentUser.value.id;
- imageUrl.value = currentUser.value.profileImageUrl;
+ if (currentUser.value) {
+ infoPersonId.value = currentUser.value.id;
+ imageUrl.value = currentUser.value.profileImageUrl;
+ }
formData.value = {
branchId: foundUser.branch[0]?.id,
provinceId: foundUser.provinceId,
@@ -645,10 +647,8 @@ function openImageDialog() {
}
onMounted(async () => {
- utilsStore.currentTitle.title = 'personnelManagement';
- utilsStore.currentTitle.path = [
- { text: 'personnelManagementCaption', i18n: true },
- ];
+ utilsStore.currentTitle.title = 'personnel.title';
+ utilsStore.currentTitle.path = [{ text: 'personnel.caption', i18n: true }];
modeView.value = $q.screen.lt.md ? true : false;
await fetchUserList();
@@ -747,7 +747,7 @@ watch(
- {{ $t('personnelStatTitle') }}
+ {{ $t('general.dataSum') }}
({
count: val,
- label: key,
+ label: `personnel.${key}`,
icon: 'mdi-account-outline',
color:
(
@@ -814,7 +814,7 @@ watch(
}))
: [
{
- label: selectorLabel,
+ label: `personnel.${selectorLabel}`,
count: typeStats[selectorLabel],
icon: 'mdi-account-outline',
color:
@@ -850,7 +850,7 @@ watch(
for="input-search"
outlined
dense
- :label="$t('search')"
+ :label="$t('general.search')"
class="q-mr-md col-12 col-md-3"
:bg-color="$q.dark.isActive ? 'dark' : 'white'"
v-model="inputSearch"
@@ -880,9 +880,9 @@ watch(
:for="'field-select-status'"
:hide-dropdown-icon="$q.screen.lt.sm"
:options="[
- { label: $t('all'), value: 'all' },
- { label: $t('statusACTIVE'), value: 'statusACTIVE' },
- { label: $t('statusINACTIVE'), value: 'statusINACTIVE' },
+ { label: $t('general.all'), value: 'all' },
+ { label: $t('general.active'), value: 'statusACTIVE' },
+ { label: $t('general.inactive'), value: 'statusINACTIVE' },
]"
>
@@ -898,7 +898,7 @@ watch(
label: $t(v.label),
}))
"
- :display-value="$t('displayField')"
+ :display-value="$t('general.displayField')"
:hide-dropdown-icon="$q.screen.lt.sm"
v-model="fieldSelected"
option-label="label"
@@ -982,12 +982,12 @@ watch(
"
>
- {{ $t('all') }}
+ {{ $t('general.all') }}
- {{ $t('USER') }}
+ {{ $t('personnel.USER') }}
- {{ $t('MESSENGER') }}
+ {{ $t('personnel.MESSENGER') }}
- {{ $t('DELEGATE') }}
+ {{ $t('personnel.DELEGATE') }}
- {{ $t('AGENCY') }}
+ {{ $t('personnel.AGENCY') }}
@@ -1180,7 +1180,7 @@ watch(
{{
- $i18n.locale === 'en-US'
+ $i18n.locale === 'eng'
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
: `${props.row.firstName} ${props.row.lastName}`.trim()
}}
@@ -1190,7 +1190,7 @@ watch(
:delay="300"
>
{{
- $i18n.locale === 'en-US'
+ $i18n.locale === 'eng'
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
: `${props.row.firstName} ${props.row.lastName}`.trim()
}}
@@ -1231,12 +1231,14 @@ watch(
>
{{
$t(
- {
- USER: 'USER',
- MESSENGER: 'MESSENGER',
- DELEGATE: 'DELEGATE',
- AGENCY: 'AGENCY',
- }[props.row.userType as string] || 'USER',
+ `personnel.${
+ {
+ USER: 'USER',
+ MESSENGER: 'MESSENGER',
+ DELEGATE: 'DELEGATE',
+ AGENCY: 'AGENCY',
+ }[props.row.userType as string] || 'USER'
+ }`,
)
}}
@@ -1307,7 +1309,7 @@ watch(
style="color: hsl(var(--green-6-hsl))"
/>
- {{ $t('viewDetail') }}
+ {{ $t('general.viewDetail') }}
@@ -1331,7 +1333,7 @@ watch(
style="color: hsl(var(--cyan-6-hsl))"
/>
- {{ $t('edit') }}
+ {{ $t('general.edit') }}
- {{ $t('delete') }}
+ {{ $t('general.delete') }}
@@ -1382,8 +1384,8 @@ watch(
{{
props.row.status !== 'INACTIVE'
- ? $t('switchOnLabel')
- : $t('switchOffLabel')
+ ? $t('general.open')
+ : $t('general.close')
}}
@@ -1404,7 +1406,7 @@ watch(
code: props.row.code,
name:
- $i18n.locale === 'en-US'
+ $i18n.locale === 'eng'
? `${props.row.firstNameEN} ${props.row.lastNameEN}`.trim()
: `${props.row.firstName} ${props.row.lastName}`.trim(),
img: props.row.profileImageUrl
@@ -1439,7 +1441,7 @@ watch(
DELEGATE: 'red',
AGENCY: 'magenta',
}[props.row.userType as string] || 'pink',
- value: $t(props.row.userType),
+ value: $t(`personnel.${props.row.userType}`),
},
]"
:disabled="props.row.status === 'INACTIVE'"
@@ -1503,15 +1505,15 @@ watch(
>
@@ -1533,12 +1535,8 @@ watch(
>
-
- {{ $t('showing') }}
+
+ {{ $t('general.recordPerPage') }}
{{
- $t('recordsPage', {
+ $t('general.recordsPage', {
resultcurrentPage: userData?.result.length,
total: userData?.total,
})
@@ -1591,12 +1589,12 @@ watch(
@@ -1831,7 +1830,7 @@ watch(
ref="formDialogRef"
:badgeClass="formData.gender === 'male' ? 'app-bg-male' : 'app-bg-female'"
:badgeLabel="userCode"
- :title="$t('personnelAdd')"
+ :title="$t('personnel.addTitle')"
v-model:modal="modal"
:addressSeparator="formData.userType !== ''"
:submit="() => onSubmit()"
@@ -1855,8 +1854,8 @@ watch(
female: '/no-img-female.png',
}[formData.gender]
"
- :toggleTitle="$t('formDialogTitleUserStatus')"
- :title="`${$i18n.locale === 'en-US' ? `${formData.firstNameEN} ${formData.lastNameEN}` : `${formData.firstName} ${formData.lastName}`}`"
+ :toggleTitle="$t('status.title')"
+ :title="`${$i18n.locale === 'eng' ? `${formData.firstNameEN} ${formData.lastNameEN}` : `${formData.firstName} ${formData.lastName}`}`"
:fallbackImg="
{
male: '/no-img-man.png',
@@ -1885,28 +1884,28 @@ watch(
>
-