feat(projects): new i18n function $t & login page and setting drawer config i18n
This commit is contained in:
@ -1,83 +1,217 @@
|
||||
import type { LocaleMessages } from 'vue-i18n';
|
||||
|
||||
const locale: LocaleMessages<I18nType.Schema> = {
|
||||
message: {
|
||||
system: {
|
||||
title: 'SoybeanAdmin'
|
||||
const locale: I18nType.Schema = {
|
||||
system: {
|
||||
title: 'SoybeanAdmin'
|
||||
},
|
||||
common: {
|
||||
add: 'Add',
|
||||
addSuccess: 'Add Success',
|
||||
edit: 'Edit',
|
||||
editSuccess: 'Edit Success',
|
||||
delete: 'Delete',
|
||||
deleteSuccess: 'Delete Success',
|
||||
batchDelete: 'Batch Delete',
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
pleaseCheckValue: 'Please check the value is valid',
|
||||
action: 'Action'
|
||||
},
|
||||
routes: {
|
||||
dashboard: {
|
||||
_value: 'Dashboard',
|
||||
analysis: 'Analysis',
|
||||
workbench: 'Workbench'
|
||||
},
|
||||
routes: {
|
||||
dashboard: {
|
||||
_value: 'Dashboard',
|
||||
analysis: 'Analysis',
|
||||
workbench: 'Workbench'
|
||||
document: {
|
||||
_value: 'Document',
|
||||
vue: 'Vue Document',
|
||||
vite: 'Vite Document',
|
||||
naive: 'NaiveUI Document',
|
||||
project: 'Project Document',
|
||||
'project-link': 'Project Document(href)'
|
||||
},
|
||||
component: {
|
||||
_value: 'Component',
|
||||
button: 'Button',
|
||||
card: 'Card',
|
||||
table: 'Table'
|
||||
},
|
||||
plugin: {
|
||||
_value: 'Plugin',
|
||||
charts: {
|
||||
_value: 'Chart',
|
||||
echarts: 'ECharts',
|
||||
antv: 'AntV'
|
||||
},
|
||||
document: {
|
||||
_value: 'Document',
|
||||
vue: 'Vue Document',
|
||||
vite: 'Vite Document',
|
||||
naive: 'NaiveUI Document',
|
||||
project: 'Project Document',
|
||||
'project-link': 'Project Document(href)'
|
||||
copy: 'Copy',
|
||||
editor: {
|
||||
_value: 'Editor',
|
||||
quill: 'Quill',
|
||||
markdown: 'Markdown'
|
||||
},
|
||||
component: {
|
||||
_value: 'Component',
|
||||
button: 'Button',
|
||||
card: 'Card',
|
||||
table: 'Table'
|
||||
icon: 'Icon',
|
||||
map: 'Map',
|
||||
print: 'Print',
|
||||
swiper: 'Swiper',
|
||||
video: 'Video'
|
||||
},
|
||||
'auth-demo': {
|
||||
_value: 'Auth Demo',
|
||||
permission: 'Toggle Permission',
|
||||
super: 'Super Auth'
|
||||
},
|
||||
function: {
|
||||
_value: 'Function',
|
||||
tab: 'System Tab'
|
||||
},
|
||||
exception: {
|
||||
_value: 'Exception',
|
||||
403: '403',
|
||||
404: '404',
|
||||
500: '500'
|
||||
},
|
||||
'multi-menu': {
|
||||
_value: 'Multi Degree Menu',
|
||||
first: {
|
||||
_value: 'First Degree',
|
||||
second: 'Second Degree',
|
||||
'second-new': {
|
||||
_value: 'Second Degree With Children',
|
||||
third: 'Third Degree'
|
||||
}
|
||||
}
|
||||
},
|
||||
management: {
|
||||
_value: 'System Management',
|
||||
auth: 'Auth',
|
||||
role: 'Role',
|
||||
route: 'Route',
|
||||
user: 'User'
|
||||
},
|
||||
about: 'About'
|
||||
},
|
||||
layout: {
|
||||
settingDrawer: {
|
||||
title: 'Theme configuration',
|
||||
themeModeTitle: 'Theme mode',
|
||||
darkMode: 'Dark mode',
|
||||
layoutModelTitle: 'Layout mode',
|
||||
systemThemeTitle: 'System theme',
|
||||
pageFunctionsTitle: 'Page functions',
|
||||
pageViewTitle: 'Page view',
|
||||
followSystemTheme: 'Follow the system',
|
||||
isCustomizeDarkModeTransition: 'Custom dark theme animation transition',
|
||||
scrollMode: 'scrollMode',
|
||||
scrollModeList: {
|
||||
wrapper: 'Outer layer scroll',
|
||||
content: 'Main body scroll'
|
||||
},
|
||||
plugin: {
|
||||
_value: 'Plugin',
|
||||
charts: {
|
||||
_value: 'Chart',
|
||||
echarts: 'ECharts',
|
||||
antv: 'AntV'
|
||||
},
|
||||
copy: 'Copy',
|
||||
editor: {
|
||||
_value: 'Editor',
|
||||
quill: 'Quill',
|
||||
markdown: 'Markdown'
|
||||
},
|
||||
icon: 'Icon',
|
||||
map: 'Map',
|
||||
print: 'Print',
|
||||
swiper: 'Swiper',
|
||||
video: 'Video'
|
||||
},
|
||||
'auth-demo': {
|
||||
_value: 'Auth Demo',
|
||||
permission: 'Toggle Permission',
|
||||
super: 'Super Auth'
|
||||
},
|
||||
function: {
|
||||
_value: 'Function',
|
||||
tab: 'System Tab'
|
||||
},
|
||||
exception: {
|
||||
_value: 'Exception',
|
||||
403: '403',
|
||||
404: '404',
|
||||
500: '500'
|
||||
},
|
||||
'multi-menu': {
|
||||
_value: 'Multi Degree Menu',
|
||||
first: {
|
||||
_value: 'First Degree',
|
||||
second: 'Second Degree',
|
||||
'second-new': {
|
||||
_value: 'Second Degree With Children',
|
||||
third: 'Third Degree'
|
||||
}
|
||||
fixedHeaderAndTab: 'Fixed header and multiple tabs',
|
||||
header: {
|
||||
inverted: 'darkHead',
|
||||
height: 'Head Height',
|
||||
crumb: {
|
||||
visible: 'Crumb',
|
||||
icon: 'Crumb icon'
|
||||
}
|
||||
},
|
||||
management: {
|
||||
_value: 'System Management',
|
||||
auth: 'Auth',
|
||||
role: 'Role',
|
||||
route: 'Route',
|
||||
user: 'User'
|
||||
tab: {
|
||||
visible: 'Multi-page tab',
|
||||
height: 'Multiple tab height',
|
||||
modeList: {
|
||||
mode: 'Multi-tab style',
|
||||
chrome: 'Google style',
|
||||
button: 'Button style'
|
||||
},
|
||||
isCache: 'Multiple tab caching'
|
||||
},
|
||||
about: 'About'
|
||||
sider: {
|
||||
inverted: 'Dark sidebar',
|
||||
width: 'Sidebar expanded width',
|
||||
mixWidth: 'Left hybrid sidebar expanded width'
|
||||
},
|
||||
menu: {
|
||||
horizontalPosition: 'Top menu position',
|
||||
horizontalPositionList: {
|
||||
flexStart: 'Right',
|
||||
center: 'center',
|
||||
flexEnd: 'Left'
|
||||
}
|
||||
},
|
||||
footer: {
|
||||
inverted: 'Dark bottom',
|
||||
visible: 'Show bottom',
|
||||
fixed: 'Fixed bottom',
|
||||
right: 'Bottom to the right'
|
||||
},
|
||||
page: {
|
||||
animate: 'switch animation',
|
||||
animateMode: 'switch animation type',
|
||||
animateModeList: {
|
||||
zoomFade: 'Gradual change',
|
||||
zoomOut: 'Flash',
|
||||
fadeSlide: 'Slide',
|
||||
fade: 'Fade away',
|
||||
fadeBottom: 'Bottom fade',
|
||||
fadeScale: 'Resizing fade away'
|
||||
}
|
||||
},
|
||||
systemTheme: {
|
||||
moreColors: 'More colors'
|
||||
},
|
||||
themeConfiguration: {
|
||||
title: 'Theme configuration',
|
||||
copy: 'Copy the current configuration',
|
||||
reset: 'Reset the current configuration',
|
||||
resetSuccess: 'The configuration has been reset, please copy it again!',
|
||||
operateSuccess: 'Successful operation',
|
||||
copySuccess: 'Copy success, please replace the content of src/settings/theme.json!',
|
||||
confirmCopy: 'Confirm'
|
||||
}
|
||||
}
|
||||
},
|
||||
page: {
|
||||
login: {
|
||||
common: {
|
||||
userNamePlaceholder: 'Please enter user name',
|
||||
phonePlaceholder: 'Please enter phone number',
|
||||
codePlaceholder: 'Please enter verification code',
|
||||
passwordPlaceholder: 'Please enter password',
|
||||
confirmPasswordPlaceholder: 'Please enter password again',
|
||||
codeLogin: 'Verification code login',
|
||||
confirm: 'Confirm',
|
||||
back: 'Back',
|
||||
validateSuccess: 'Verification passed',
|
||||
loginSuccess: 'Login success',
|
||||
welcomeBack: 'Welcome back, {userName}!'
|
||||
},
|
||||
pwdLogin: {
|
||||
title: 'Password Login',
|
||||
rememberMe: 'Remember me',
|
||||
forgetPassword: 'Forget password?',
|
||||
register: 'Register account',
|
||||
otherAccountLogin: 'Other Account Login',
|
||||
otherLoginMode: 'Other Login Mode',
|
||||
superAdmin: 'Super Administrator',
|
||||
admin: 'Administrator',
|
||||
user: 'Ordinary User'
|
||||
},
|
||||
codeLogin: {
|
||||
title: 'Verification Code Login',
|
||||
getCode: 'Get verification code',
|
||||
imageCodePlaceholder: 'Please enter image verification code'
|
||||
},
|
||||
register: {
|
||||
title: 'Register Account',
|
||||
agreement: 'I have read and agree to',
|
||||
protocol: '《User Agreement》',
|
||||
policy: '《Privacy Policy》'
|
||||
},
|
||||
resetPwd: {
|
||||
title: 'Reset Password'
|
||||
},
|
||||
bindWeChat: {
|
||||
title: 'Bind WeChat'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user