mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 11:37:29 +08:00
更新国际化支持:调整多个组件中的文本引入,优化语言切换和翻译功能,删除不再使用的类型文件。
This commit is contained in:
@@ -232,6 +232,18 @@ export default {
|
||||
name: 'Name',
|
||||
searchShares: 'Search Subscription Shares',
|
||||
keyword: 'Keyword',
|
||||
noShareData:
|
||||
'No shared subscription data available, data sharing is not enabled or the server cannot be connected.',
|
||||
noPopularData:
|
||||
'No popular subscription data available, data sharing is not enabled or the server cannot be connected.',
|
||||
noFilterData: 'No matching content found. Please change the filter criteria.',
|
||||
noSubscribeData: 'Please search to add movie or TV show subscriptions.',
|
||||
sharer: 'Shared by',
|
||||
follow: 'Follow',
|
||||
unfollow: 'Unfollow',
|
||||
recognitionWords: 'Recognition Words',
|
||||
cancelShare: 'Cancel Share',
|
||||
usageCount: 'Used {count} times',
|
||||
},
|
||||
recommend: {
|
||||
all: 'All',
|
||||
@@ -307,4 +319,52 @@ export default {
|
||||
loadMore: 'Load More',
|
||||
noMatchingResults: 'No matching results',
|
||||
},
|
||||
calendar: {
|
||||
episode: 'Episode {number}',
|
||||
},
|
||||
storage: {
|
||||
usedPercent: 'Used {percent}%',
|
||||
},
|
||||
site: {
|
||||
noSites: 'No Sites',
|
||||
sitesWillBeShownHere: 'Added and supported sites will be displayed here.',
|
||||
},
|
||||
message: {
|
||||
loadMore: 'Load More',
|
||||
noMoreData: 'No More Data',
|
||||
},
|
||||
logging: {
|
||||
level: 'Level',
|
||||
time: 'Time',
|
||||
program: 'Program',
|
||||
content: 'Content',
|
||||
refreshing: 'Refreshing',
|
||||
},
|
||||
moduleTest: {
|
||||
normal: 'Normal',
|
||||
disabled: 'Disabled',
|
||||
error: 'Error',
|
||||
},
|
||||
nameTest: {
|
||||
recognize: 'Recognize',
|
||||
recognizing: 'Recognizing...',
|
||||
recognizeAgain: 'Recognize Again',
|
||||
title: 'Title',
|
||||
subtitle: 'Subtitle',
|
||||
},
|
||||
netTest: {
|
||||
notTested: 'Not Tested',
|
||||
testing: 'Testing...',
|
||||
normal: 'Normal',
|
||||
},
|
||||
ruleTest: {
|
||||
test: 'Test',
|
||||
testing: 'Testing...',
|
||||
testAgain: 'Test Again',
|
||||
title: 'Title',
|
||||
subtitle: 'Subtitle',
|
||||
ruleGroup: 'Rule Group',
|
||||
priority: 'Priority: {value}',
|
||||
noPriorityRule: 'No priority rule matched!',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
import zhCN from './zh-CN'
|
||||
|
||||
export type MessageSchema = typeof zhCN
|
||||
export type LocaleKey = keyof typeof zhCN
|
||||
|
||||
export interface LocaleInfo {
|
||||
name: string
|
||||
title: string
|
||||
flag?: string
|
||||
}
|
||||
|
||||
export const SUPPORTED_LOCALES: Record<string, LocaleInfo> = {
|
||||
'zh-CN': {
|
||||
name: 'zh-CN',
|
||||
title: '简体中文',
|
||||
flag: '🇨🇳',
|
||||
},
|
||||
'en-US': {
|
||||
name: 'en-US',
|
||||
title: 'English',
|
||||
flag: '🇺🇸',
|
||||
},
|
||||
}
|
||||
|
||||
export type SupportedLocale = keyof typeof SUPPORTED_LOCALES
|
||||
@@ -232,6 +232,16 @@ export default {
|
||||
name: '名称',
|
||||
searchShares: '搜索订阅分享',
|
||||
keyword: '关键词',
|
||||
noShareData: '未获取到分享订阅数据,未开启数据分享或服务器无法连接。',
|
||||
noPopularData: '未获取到热门订阅数据,未开启数据分享或服务器无法连接。',
|
||||
noFilterData: '没有筛选到相关内容,请更换筛选条件。',
|
||||
noSubscribeData: '请通过搜索添加电影、电视剧订阅。',
|
||||
sharer: '分享人',
|
||||
follow: '关注',
|
||||
unfollow: '取消关注',
|
||||
recognitionWords: '识别词',
|
||||
cancelShare: '取消分享',
|
||||
usageCount: '共 {count} 次复用',
|
||||
},
|
||||
recommend: {
|
||||
all: '全部',
|
||||
@@ -307,4 +317,52 @@ export default {
|
||||
loadMore: '加载更多',
|
||||
noMatchingResults: '没有匹配的结果',
|
||||
},
|
||||
calendar: {
|
||||
episode: '第{number}集',
|
||||
},
|
||||
storage: {
|
||||
usedPercent: '已使用 {percent}%',
|
||||
},
|
||||
site: {
|
||||
noSites: '没有站点',
|
||||
sitesWillBeShownHere: '已添加并支持的站点将会在这里显示。',
|
||||
},
|
||||
message: {
|
||||
loadMore: '加载更多',
|
||||
noMoreData: '没有更多数据',
|
||||
},
|
||||
logging: {
|
||||
level: '级别',
|
||||
time: '时间',
|
||||
program: '程序',
|
||||
content: '内容',
|
||||
refreshing: '正在刷新',
|
||||
},
|
||||
moduleTest: {
|
||||
normal: '正常',
|
||||
disabled: '未启用',
|
||||
error: '错误',
|
||||
},
|
||||
nameTest: {
|
||||
recognize: '识别',
|
||||
recognizing: '识别中...',
|
||||
recognizeAgain: '重新识别',
|
||||
title: '标题',
|
||||
subtitle: '副标题',
|
||||
},
|
||||
netTest: {
|
||||
notTested: '未测试',
|
||||
testing: '测试中...',
|
||||
normal: '正常',
|
||||
},
|
||||
ruleTest: {
|
||||
test: '测试',
|
||||
testing: '正在测试...',
|
||||
testAgain: '重新测试',
|
||||
title: '标题',
|
||||
subtitle: '副标题',
|
||||
ruleGroup: '规则组',
|
||||
priority: '优先级:{value}',
|
||||
noPriorityRule: '未命中任何优先级规则!',
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user