refactor(i18n): 扁平化国际化语言配置结构

移除多层嵌套的语言对象层级,将翻译项直接挂载到顶层lang对象下,简化语言文件结构,提升维护性
This commit is contained in:
2026-07-03 11:50:21 +08:00
parent d1e6cc3122
commit b93badedd4
12 changed files with 140 additions and 201 deletions

View File

@@ -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',
}

View File

@@ -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',
}