更新国际化支持:在多个对话框组件中引入 vue-i18n,优化文本翻译,确保多语言显示的一致性和准确性。

This commit is contained in:
jxxghp
2025-04-28 08:29:08 +08:00
parent 819dd01d60
commit daf70b6da4
11 changed files with 425 additions and 104 deletions

View File

@@ -721,4 +721,119 @@ export default {
settingsSaveFailed: 'Failed to save subscription basic settings!',
},
},
dialog: {
progress: {
processing: 'Processing',
},
userAddEdit: {
add: 'Add User',
edit: 'Edit User',
username: 'Username',
password: 'Password',
confirmPassword: 'Confirm Password',
email: 'Email',
nickname: 'Nickname',
status: 'Status',
active: 'Active',
inactive: 'Inactive',
superUser: 'Super User',
otp: 'Enable Two-Factor Authentication',
avatar: 'Avatar',
uploadAvatar: 'Upload Avatar',
resetDefaultAvatar: 'Reset to Default Avatar',
restoreCurrentAvatar: 'Restore Current Avatar',
notifications: 'Notifications',
wechat: 'WeChat UserID',
telegram: 'Telegram UserID',
slack: 'Slack UserID',
vocechat: 'VoceChat UserID',
synologyChat: 'SynologyChat UserID',
webPush: 'WebPush',
creatingUser: 'Creating user [{name}], please wait',
updatingUser: 'Updating user [{name}], please wait',
usernameRequired: 'Username cannot be empty',
usernameExists: 'Username already exists',
passwordMismatch: 'Passwords do not match',
userCreated: 'User [{name}] created successfully',
userCreateFailed: 'Failed to create user: {message}',
userUpdateSuccess: 'User [{name}] updated successfully',
userUpdateFailed: 'Failed to update user: {message}',
userDeleteSuccess: 'User [{name}] deleted successfully',
userDeleteFailed: 'Failed to delete user: {message}',
invalidFile: 'The uploaded file does not meet requirements, please select another avatar',
fileSizeLimit: 'File size cannot exceed 800KB',
avatarUploadSuccess: 'New avatar uploaded successfully, will take effect after saving!',
resetAvatarSuccess: 'Reset to default avatar, will take effect after saving!',
restoreAvatarSuccess: 'Current avatar restored!',
deleteConfirm: 'Confirm delete user [{name}]?',
saveUserInfo: 'Save User Information',
cannotDeleteCurrentUser: 'Cannot delete the currently logged-in user',
deleteUser: 'Delete User',
},
searchBar: {
search: 'Search',
searchPlaceholder: 'Search functions, subscriptions, settings...',
recentSearches: 'Recent Searches',
noRecentSearches: 'No recent searches',
functions: 'Functions',
noFunctionsFound: 'No matching functions',
plugins: 'Plugins',
noPluginsFound: 'No matching plugins',
subscriptions: 'Subscriptions',
noSubscriptionsFound: 'No matching subscriptions',
searchSites: 'Search Sites',
selectSites: 'Select Sites',
collections: 'Collections',
collectionSearch: 'related collections',
actorSearch: 'related actors, directors, etc.',
historySearch: 'related history records',
siteResources: 'Site Resources',
searchInSites: 'Search for torrents in sites',
relatedResources: 'related resources',
searchTip: 'Search for movies, TV shows, actors, resources, etc.',
},
searchSite: {
selectSites: 'Select Sites',
siteSearch: 'Site Search',
searchAllSites: 'Selected {selected}/{total} sites',
selectAll: 'Select All',
deselectAll: 'Deselect All',
confirm: 'Confirm',
cancel: 'Cancel',
},
importCode: {
import: 'Import',
title: 'Import Code',
},
addDownload: {
confirmDownload: 'Confirm Download',
downloader: 'Downloader (Default)',
saveDirectory: 'Save Directory (Auto)',
defaultPlaceholder: 'Leave empty for default',
autoPlaceholder: 'Leave empty for auto match',
downloading: 'Downloading...',
startDownload: 'Start Download',
downloadSuccess: '{site} {title} downloaded successfully!',
downloadFailed: '{site} {title} download failed: {message}!',
},
subscribeShare: {
shareSubscription: 'Share Subscription',
season: 'Season {number}',
title: 'Title',
description: 'Description',
descriptionHint:
'Fill in the description of the subscription. Search terms and identification terms in the subscription will be included in the share by default',
shareUser: 'Share User',
shareUserHint: 'Nickname of the sharer',
confirmShare: 'Confirm Share',
shareSuccess: '{name} shared successfully!',
shareFailed: '{name} share failed: {message}!',
},
u115Auth: {
loginTitle: '115 Cloud Login',
scanQrCode: 'Please scan the QR code with WeChat or 115 client',
scanned: 'QR code scanned, please confirm login',
complete: 'Complete',
},
},
}

View File

@@ -707,4 +707,118 @@ export default {
settingsSaveFailed: '订阅基础设置保存失败!',
},
},
dialog: {
progress: {
processing: '处理中',
},
userAddEdit: {
add: '添加用户',
edit: '编辑用户',
username: '用户名',
password: '密码',
confirmPassword: '确认密码',
email: '邮箱',
nickname: '昵称',
status: '状态',
active: '激活',
inactive: '已停用',
superUser: '超级用户',
otp: '启用二次验证',
avatar: '头像',
uploadAvatar: '上传头像',
resetDefaultAvatar: '重置默认头像',
restoreCurrentAvatar: '还原当前头像',
notifications: '通知',
wechat: '微信UserID',
telegram: 'Telegram UserID',
slack: 'Slack UserID',
vocechat: 'VoceChat UserID',
synologyChat: 'SynologyChat UserID',
webPush: 'WebPush',
creatingUser: '正在创建【{name}】用户,请稍后',
updatingUser: '正在更新【{name}】用户,请稍后',
usernameRequired: '用户名不能为空',
usernameExists: '用户名已存在',
passwordMismatch: '两次输入的密码不一致',
userCreated: '用户【{name}】创建成功',
userCreateFailed: '创建用户失败:{message}',
userUpdateSuccess: '用户【{name}】更新成功',
userUpdateFailed: '更新用户失败:{message}',
userDeleteSuccess: '用户【{name}】删除成功',
userDeleteFailed: '删除用户失败:{message}',
invalidFile: '上传的文件不符合要求,请重新选择头像',
fileSizeLimit: '文件大小不得大于800KB',
avatarUploadSuccess: '新头像上传成功,待保存后生效!',
resetAvatarSuccess: '已重置为默认头像,待保存后生效!',
restoreAvatarSuccess: '已还原当前使用头像!',
deleteConfirm: '确认删除用户【{name}】吗?',
saveUserInfo: '保存用户信息',
cannotDeleteCurrentUser: '不能删除当前登录用户',
deleteUser: '删除用户',
},
searchBar: {
search: '搜索',
searchPlaceholder: '搜索功能、订阅、设置...',
recentSearches: '最近搜索',
noRecentSearches: '没有最近搜索记录',
functions: '功能',
noFunctionsFound: '没有匹配的功能',
plugins: '插件',
noPluginsFound: '没有匹配的插件',
subscriptions: '订阅',
noSubscriptionsFound: '没有匹配的订阅',
searchSites: '搜索站点',
selectSites: '选择站点',
collections: '系列合集',
collectionSearch: '相关的系列作品',
actorSearch: '相关的演员、导演等',
historySearch: '相关的历史记录',
siteResources: '站点资源',
searchInSites: '在站点中搜索种子资源',
relatedResources: '相关资源',
searchTip: '可搜索电影、电视剧、演员、资源等',
},
searchSite: {
selectSites: '选择站点',
siteSearch: '站点搜索',
searchAllSites: '已选择 {selected}/{total} 个站点',
selectAll: '选择全部',
deselectAll: '取消全选',
confirm: '确认',
cancel: '取消',
},
importCode: {
import: '导入',
title: '导入代码',
},
addDownload: {
confirmDownload: '确认下载',
downloader: '下载器(默认)',
saveDirectory: '保存目录(自动)',
defaultPlaceholder: '留空默认',
autoPlaceholder: '留空自动匹配',
downloading: '下载中...',
startDownload: '开始下载',
downloadSuccess: '{site} {title} 下载成功!',
downloadFailed: '{site} {title} 下载失败:{message}',
},
subscribeShare: {
shareSubscription: '分享订阅',
season: '第 {number} 季',
title: '标题',
description: '说明',
descriptionHint: '填写关于该订阅的说明,订阅中的搜索词、识别词等将会默认包含在分享中',
shareUser: '分享用户',
shareUserHint: '分享人的昵称',
confirmShare: '确认分享',
shareSuccess: '{name} 分享成功!',
shareFailed: '{name} 分享失败:{message}',
},
u115Auth: {
loginTitle: '115网盘登录',
scanQrCode: '请使用微信或115客户端扫码',
scanned: '已扫码,请确认登录',
complete: '完成',
},
},
}