refactor(i18n): 扁平化国际化语言配置结构
移除多层嵌套的语言对象层级,将翻译项直接挂载到顶层lang对象下,简化语言文件结构,提升维护性
This commit is contained in:
@@ -1,27 +1,19 @@
|
||||
export const lang = {
|
||||
|
||||
// Seal detail
|
||||
seal: {
|
||||
medium: {
|
||||
detail: {
|
||||
// Page title
|
||||
title: 'Seal Details',
|
||||
// Export image
|
||||
exportImage: 'Export Image',
|
||||
// Export PDF
|
||||
exportPdf: 'Export PDF',
|
||||
// Loading
|
||||
loading: 'Loading',
|
||||
// File does not exist
|
||||
fileNotExist: 'File does not exist',
|
||||
// Save success
|
||||
saveSuccess: 'Saved successfully',
|
||||
// Save failed
|
||||
saveFailed: 'Save failed',
|
||||
// Download failed
|
||||
downloadFailed: 'Download failed',
|
||||
}
|
||||
}
|
||||
}
|
||||
// Page title
|
||||
title: 'Seal Details',
|
||||
// Export image
|
||||
exportImage: 'Export Image',
|
||||
// Export PDF
|
||||
exportPdf: 'Export PDF',
|
||||
// Loading
|
||||
loading: 'Loading',
|
||||
// File does not exist
|
||||
fileNotExist: 'File does not exist',
|
||||
// Save success
|
||||
saveSuccess: 'Saved successfully',
|
||||
// Save failed
|
||||
saveFailed: 'Save failed',
|
||||
// Download failed
|
||||
downloadFailed: 'Download failed',
|
||||
|
||||
}
|
||||
|
||||
@@ -1,24 +1,16 @@
|
||||
export const lang = {
|
||||
|
||||
// Seal search page
|
||||
seal: {
|
||||
medium: {
|
||||
search: {
|
||||
title: 'Medium Material Search',
|
||||
// Search input placeholder
|
||||
placeholder: 'Enter keywords to search',
|
||||
// Search results title
|
||||
searchResult: 'Search Results',
|
||||
// Empty data tip
|
||||
noData: 'No Data',
|
||||
// Modal title
|
||||
tip: 'Tip',
|
||||
// Confirm delete all history
|
||||
confirmDeleteAllHistory: 'Are you sure you want to delete all search history?',
|
||||
// Confirm delete single history item
|
||||
confirmDeleteHistory: 'Are you sure you want to delete this search history?',
|
||||
}
|
||||
}
|
||||
}
|
||||
title: 'Medium Material Search',
|
||||
// Search input placeholder
|
||||
placeholder: 'Enter keywords to search',
|
||||
// Search results title
|
||||
searchResult: 'Search Results',
|
||||
// Empty data tip
|
||||
noData: 'No Data',
|
||||
// Modal title
|
||||
tip: 'Tip',
|
||||
// Confirm delete all history
|
||||
confirmDeleteAllHistory: 'Are you sure you want to delete all search history?',
|
||||
// Confirm delete single history item
|
||||
confirmDeleteHistory: 'Are you sure you want to delete this search history?',
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user