mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 17:39:16 +00:00
feat: 实现i18n核心配置和语言状态管理
- 创建i18n配置系统,支持简体中文/繁体中文/英文三种语言 - 实现浏览器语言自动检测和localStorage持久化 - 添加基础翻译文件,包含common、language、header、apiStats模块 - 创建locale store使用Pinia管理语言状态 - 配置语言标识符为纯文字:简/繁/EN,去除国旗emoji
This commit is contained in:
38
web/admin-spa/src/i18n/locales/en.js
Normal file
38
web/admin-spa/src/i18n/locales/en.js
Normal file
@@ -0,0 +1,38 @@
|
||||
export default {
|
||||
common: {
|
||||
save: 'Save',
|
||||
cancel: 'Cancel',
|
||||
confirm: 'Confirm',
|
||||
loading: 'Loading...',
|
||||
edit: 'Edit',
|
||||
delete: 'Delete',
|
||||
create: 'Create',
|
||||
update: 'Update',
|
||||
search: 'Search',
|
||||
reset: 'Reset'
|
||||
},
|
||||
language: {
|
||||
zh: '简体中文',
|
||||
'zh-tw': '繁體中文',
|
||||
en: 'English',
|
||||
current: 'Current Language',
|
||||
switch: 'Switch Language'
|
||||
},
|
||||
header: {
|
||||
adminPanel: 'Admin Panel',
|
||||
userMenu: 'User Menu',
|
||||
logout: 'Logout',
|
||||
settings: 'Settings'
|
||||
},
|
||||
apiStats: {
|
||||
title: 'API Key Usage Statistics',
|
||||
tutorialTitle: 'Tutorial',
|
||||
userLogin: 'User Login',
|
||||
adminPanel: 'Admin Panel',
|
||||
statsQuery: 'Statistics Query',
|
||||
tutorial: 'Tutorial',
|
||||
timeRange: 'Statistics Time Range',
|
||||
today: 'Today',
|
||||
thisMonth: 'This Month'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user