refactor(i18n): 扁平化国际化语言配置结构
移除多层嵌套的语言对象层级,将翻译项直接挂载到顶层lang对象下,简化语言文件结构,提升维护性
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
export const lang = {
|
||||
|
||||
// Form page
|
||||
form: {
|
||||
form: {
|
||||
// Page title
|
||||
title: 'Please fill in the form information',
|
||||
// Submit success message
|
||||
submitSuccess: 'Submitted successfully',
|
||||
// Form information not available
|
||||
noFormInfo: 'Form information not available',
|
||||
},
|
||||
},
|
||||
// Page title
|
||||
title: 'Please fill in the form information',
|
||||
// Submit success message
|
||||
submitSuccess: 'Submitted successfully',
|
||||
// Form information not available
|
||||
noFormInfo: 'Form information not available',
|
||||
|
||||
}
|
||||
|
||||
@@ -1,18 +1,13 @@
|
||||
export const lang = {
|
||||
|
||||
// Form page - formdata
|
||||
form: {
|
||||
formdata: {
|
||||
title: 'Form Details',
|
||||
// Empty state messages
|
||||
submitSuccess: 'Submitted successfully',
|
||||
noFormInfo: 'Form information not available',
|
||||
// Form tip placeholder
|
||||
formTipPlaceholder: 'Please fill in the required form information',
|
||||
// Modal dialog
|
||||
tip: 'Tip',
|
||||
paramError: 'Parameter error',
|
||||
}
|
||||
}
|
||||
|
||||
title: 'Form Details',
|
||||
// Empty state messages
|
||||
submitSuccess: 'Submitted successfully',
|
||||
noFormInfo: 'Form information not available',
|
||||
// Form tip placeholder
|
||||
formTipPlaceholder: 'Please fill in the required form information',
|
||||
// Modal dialog
|
||||
tip: 'Tip',
|
||||
paramError: 'Parameter error',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user