refactor: i18n backend
This commit is contained in:
parent
13129d6da8
commit
c3c98c1980
3 changed files with 114 additions and 10 deletions
|
|
@ -51,10 +51,10 @@ api.interceptors.response.use(
|
|||
title:
|
||||
err.response.status >= 400 && err.response.status < 500
|
||||
? 'form.warning.title'
|
||||
: 'errorOccurred',
|
||||
: 'form.error.title',
|
||||
persistent: true,
|
||||
enablei18n: true,
|
||||
message: parseError(err.response.status, err.response.data),
|
||||
message: `dialog.backend.${parseError(err.response.status, err.response.data)}`,
|
||||
action: () => {},
|
||||
});
|
||||
},
|
||||
|
|
|
|||
|
|
@ -455,10 +455,6 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
backend: {
|
||||
sameBranchCodeExists: 'This Head Office Abbreviation is already in use.',
|
||||
},
|
||||
|
||||
dialog: {
|
||||
title: {
|
||||
incompleteDataEntry: 'Incomplete Data Entry',
|
||||
|
|
@ -479,5 +475,62 @@ export default {
|
|||
delete: 'Delete',
|
||||
cancel: 'Cancel',
|
||||
},
|
||||
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.',
|
||||
validateError: 'Validate Error',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ export default {
|
|||
middleName: 'ชื่อกลาง',
|
||||
middleNameEN: 'ชื่อกลาง ภาษาอังกฤษ',
|
||||
error: {
|
||||
title: 'เกิดข้อผิดพลาด {msg}',
|
||||
required: 'จำเป็นต้องกรอกข้อมูลนี้',
|
||||
select: 'โปรดเลือก',
|
||||
selectField: 'โปรดเลือก{field}',
|
||||
|
|
@ -455,10 +456,6 @@ export default {
|
|||
},
|
||||
},
|
||||
|
||||
backend: {
|
||||
sameBranchCodeExists: 'ตัวย่อสำนักงานใหญ่นี้ถูกใช้แล้ว',
|
||||
},
|
||||
|
||||
dialog: {
|
||||
title: {
|
||||
incompleteDataEntry: 'กรอกข้อมูลไม่ครบ',
|
||||
|
|
@ -479,5 +476,59 @@ export default {
|
|||
delete: 'ลบ',
|
||||
cancel: 'ยกเลิก',
|
||||
},
|
||||
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: 'ตัวย่อสำนักงานใหญ่นี้ถูกใช้แล้ว',
|
||||
validateError: 'เกิดข้อผิดพลาดจากการตรวจสอบ',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue