更新国际化支持:在账户设置中引入多个新配置项,优化用户体验,支持用户辅助认证、全局图片缓存、订阅数据分享等功能的多语言显示。

This commit is contained in:
jxxghp
2025-04-28 12:15:49 +08:00
parent 7575c5acfa
commit 034238716a
3 changed files with 261 additions and 81 deletions

View File

@@ -447,6 +447,97 @@ export default {
plex: 'Plex',
reloadSuccess: 'System configuration has taken effect',
reloadFailed: 'Failed to reload system!',
auxAuthEnable: 'User Auxiliary Authentication',
auxAuthEnableHint: 'Allow external services to authenticate login and automatically create users',
globalImageCache: 'Global Image Cache',
globalImageCacheHint: 'Cache media images locally to improve image loading speed',
subscribeStatisticShare: 'Share Subscription Data',
subscribeStatisticShareHint:
'Share subscription statistics to popular subscriptions for other MP users to reference',
pluginStatisticShare: 'Report Plugin Installation Data',
pluginStatisticShareHint: 'Report plugin installation data to the server for statistics and display purposes',
bigMemoryMode: 'Large Memory Mode',
bigMemoryModeHint: 'Use more memory to cache data and improve system performance',
dbWalEnable: 'WAL Mode',
dbWalEnableHint:
'Can improve read/write concurrency performance, but may increase the risk of data loss in exceptional cases, requires restart to take effect',
tmdbApiDomain: 'TMDB API Service Address',
tmdbApiDomainPlaceholder: 'api.themoviedb.org',
tmdbApiDomainHint: 'Customize themoviedb API domain or proxy address',
tmdbApiDomainRequired: 'Please enter TMDB API domain',
tmdbImageDomain: 'TMDB Image Service Address',
tmdbImageDomainPlaceholder: 'image.tmdb.org',
tmdbImageDomainHint: 'Customize themoviedb image service domain or proxy address',
tmdbImageDomainRequired: 'Please enter image service domain',
tmdbLocale: 'TMDB Metadata Language',
tmdbLocalePlaceholder: 'en',
tmdbLocaleHint: 'Customize themoviedb metadata language',
metaCacheExpire: 'Media Metadata Cache Expiration Time',
metaCacheExpireHint: 'Recognition metadata local cache time, use built-in default value when set to 0',
metaCacheExpireRequired: 'Please enter metadata cache time',
metaCacheExpireMin: 'Metadata cache time must be greater than or equal to 0',
scrapFollowTmdb: 'Follow TMDB Recognition',
scrapFollowTmdbHint:
'When turned off, organization history will be used (if available) to avoid TMDB data changes during subscription',
fanartEnable: 'Fanart Image Data Source',
fanartEnableHint: 'Use image data from fanart.tv',
githubProxy: 'Github Acceleration Proxy',
githubProxyPlaceholder: 'Leave empty for no proxy',
githubProxyHint: 'Use proxy to accelerate Github access speed',
pipProxy: 'PIP Acceleration Proxy',
pipProxyPlaceholder: 'Leave empty for no proxy',
pipProxyHint: 'Use proxy to accelerate pip library installation speed for plugins, etc.',
dohEnable: 'DNS Over HTTPS',
dohEnableHint: 'Use DOH to resolve specific domains to prevent DNS pollution',
dohResolvers: 'DOH Servers',
dohResolversPlaceholder: 'https://dns.google/dns-query,1.1.1.1',
dohResolversHint: 'DNS resolver server addresses, multiple addresses separated by commas',
dohDomains: 'DOH Domains',
dohDomainsPlaceholder: 'example.com,example2.com',
dohDomainsHint: 'Domains to be resolved using DOH, multiple domains separated by commas',
debug: 'Debug Mode',
debugHint: 'When debug mode is enabled, logs will be recorded at DEBUG level to help troubleshoot issues',
logLevel: 'Log Level',
logLevelHint: 'Set the level of log recording to control log output volume',
logMaxFileSize: 'Maximum Log File Size (MB)',
logMaxFileSizeHint: 'Limit the maximum size of a single log file, logs will be split automatically when exceeded',
logMaxFileSizeRequired: 'Maximum log file size',
logMaxFileSizeMin: 'Maximum log file size must be greater than or equal to 1',
logBackupCount: 'Maximum Number of Log File Backups',
logBackupCountHint:
'Set the maximum number of backups for each module log file, old logs will be overwritten when exceeded',
logBackupCountRequired: 'Please enter the maximum number of log file backups',
logBackupCountMin: 'Maximum number of log file backups must be greater than or equal to 1',
logFileFormat: 'Log File Format',
logFileFormatHint: 'Set the output format of log files to customize the displayed content of logs',
pluginAutoReload: 'Plugin Hot Reload',
pluginAutoReloadHint: 'Automatically reload after modifying plugin files, used when developing plugins',
encodingDetectionPerformanceMode: 'Encoding Detection Performance Mode',
encodingDetectionPerformanceModeHint:
'Prioritize detection efficiency, but may reduce encoding detection accuracy',
tokenizedSearch: 'Tokenized Search',
tokenizedSearchHint:
'Improve organization history search precision, but may increase performance overhead and unexpected results',
tmdbLanguage: {
zhCN: 'Simplified Chinese',
zhTW: 'Traditional Chinese',
en: 'English',
},
logLevelItems: {
debug: 'DEBUG',
info: 'INFO',
warning: 'WARNING',
error: 'ERROR',
critical: 'CRITICAL',
},
wallpaperItems: {
tmdb: 'TMDB Movie Posters',
bing: 'Bing Daily Wallpaper',
bingDaily: 'Bing Daily Image',
none: 'No Wallpaper',
},
mb: 'MB',
hour: 'hour',
},
site: {
siteSync: 'Site Synchronization',

View File

@@ -445,6 +445,91 @@ export default {
plex: 'Plex',
reloadSuccess: '系统配置已生效',
reloadFailed: '重载系统失败!',
auxAuthEnable: '用户辅助认证',
auxAuthEnableHint: '允许外部服务进行登录认证以及自动创建用户',
globalImageCache: '全局图片缓存',
globalImageCacheHint: '将媒体图片缓存到本地,提升图片加载速度',
subscribeStatisticShare: '分享订阅数据',
subscribeStatisticShareHint: '分享订阅统计数据到热门订阅供其他MPer参考',
pluginStatisticShare: '上报插件安装数据',
pluginStatisticShareHint: '上报插件安装数据给服务器,用于统计展示插件安装情况',
bigMemoryMode: '大内存模式',
bigMemoryModeHint: '使用更大的内存缓存数据,提升系统性能',
dbWalEnable: 'WAL模式',
dbWalEnableHint: '可提升读写并发性能,但可能在异常情况下增加数据丢失风险,更改后需重启生效',
tmdbApiDomain: 'TMDB API服务地址',
tmdbApiDomainPlaceholder: 'api.themoviedb.org',
tmdbApiDomainHint: '自定义themoviedb API域名或代理地址',
tmdbApiDomainRequired: '请输入TMDB API域名',
tmdbImageDomain: 'TMDB 图片服务地址',
tmdbImageDomainPlaceholder: 'image.tmdb.org',
tmdbImageDomainHint: '自定义themoviedb图片服务域名或代理地址',
tmdbImageDomainRequired: '请输入图片服务域名',
tmdbLocale: 'TMDB 元数据语言',
tmdbLocalePlaceholder: 'zh',
tmdbLocaleHint: '自定义themoviedb元数据语言',
metaCacheExpire: '媒体元数据缓存过期时间',
metaCacheExpireHint: '识别元数据本地缓存时间,为 0 时使用内置默认值',
metaCacheExpireRequired: '请输入元数据缓存时间',
metaCacheExpireMin: '元数据缓存时间必须大于等于0',
scrapFollowTmdb: '跟随TMDB识别整理',
scrapFollowTmdbHint: '关闭时以整理历史记录为准如有避免TMDB数据在订阅中途修改',
fanartEnable: 'Fanart图片数据源',
fanartEnableHint: '使用 fanart.tv 的图片数据',
githubProxy: 'Github加速代理',
githubProxyPlaceholder: '留空表示不使用代理',
githubProxyHint: '使用代理加速Github访问速度',
pipProxy: 'PIP加速代理',
pipProxyPlaceholder: '留空表示不使用代理',
pipProxyHint: '使用代理加速插件等pip库安装速度',
dohEnable: 'DNS Over HTTPS',
dohEnableHint: '使用DOH对特定域名进行解析以防止DNS污染',
dohResolvers: 'DOH 服务器',
dohResolversPlaceholder: 'https://dns.google/dns-query,1.1.1.1',
dohResolversHint: 'DNS解析服务器地址多个地址使用逗号分隔',
dohDomains: 'DOH 域名',
dohDomainsPlaceholder: 'example.com,example2.com',
dohDomainsHint: '使用DOH解析的域名多个域名使用逗号分隔',
debug: '调试模式',
debugHint: '启用调试模式后日志将以DEBUG级别记录以便排查问题',
logLevel: '日志等级',
logLevelHint: '设置日志记录的级别,用于控制日志输出量',
logMaxFileSize: '日志文件最大容量(MB)',
logMaxFileSizeHint: '限制单个日志文件的最大容量,超出后将自动分割日志',
logMaxFileSizeRequired: '日志文件最大大小',
logMaxFileSizeMin: '日志文件最大容量必须大于等于1',
logBackupCount: '日志文件最大备份数量',
logBackupCountHint: '设置每个模块日志文件的最大备份数量,超过后将覆盖旧日志',
logBackupCountRequired: '请输入日志文件最大备份数量',
logBackupCountMin: '日志文件最大备份数量必须大于等于1',
logFileFormat: '日志文件格式',
logFileFormatHint: '设置日志文件的输出格式,用于自定义日志的显示内容',
pluginAutoReload: '插件热加载',
pluginAutoReloadHint: '修改插件文件后自动重新加载,开发插件时使用',
encodingDetectionPerformanceMode: '编码探测性能模式',
encodingDetectionPerformanceModeHint: '优先提升探测效率,但可能降低编码探测的准确性',
tokenizedSearch: '分词搜索',
tokenizedSearchHint: '提升整理历史记录搜索精度,但可能增加性能开销和意外结果',
tmdbLanguage: {
zhCN: '简体中文',
zhTW: '繁体中文',
en: '英文',
},
logLevelItems: {
debug: 'DEBUG - 调试',
info: 'INFO - 信息',
warning: 'WARNING - 警告',
error: 'ERROR - 错误',
critical: 'CRITICAL - 严重',
},
wallpaperItems: {
tmdb: 'TMDB电影海报',
bing: 'Bing每日壁纸',
bingDaily: 'Bing每日图片',
none: '无壁纸',
},
mb: 'MB',
hour: '小时',
},
site: {
siteSync: '站点同步',