fix: Change key name and translation

This commit is contained in:
Rewrite0
2023-06-14 21:09:09 +08:00
parent b8ba486cfe
commit 9381a2a973
16 changed files with 118 additions and 118 deletions

View File

@@ -115,7 +115,7 @@ async function subscribe() {
<div v-if="!analysis.next" space-y-12px>
<ab-setting
v-model:data="rss"
:label="$t('topbar.add.rsslink')"
:label="$t('topbar.add.rss_link')"
type="input"
:prop="{
placeholder: $t('topbar.add.placeholder'),

View File

@@ -9,7 +9,7 @@ const { user, update } = useAuth();
<template>
<ab-popup
v-model:show="show"
:title="$t('topbar.profile.poptitle')"
:title="$t('topbar.profile.pop_title')"
css="w-365px"
>
<div space-y-16px>
@@ -35,7 +35,7 @@ const { user, update } = useAuth();
<div flex="~ justify-end">
<ab-button size="small" @click="update">{{
$t('topbar.profile.updatebtn')
$t('topbar.profile.update_btn')
}}</ab-button>
</div>
</div>

View File

@@ -53,9 +53,9 @@ function emitEnable() {
const popupTitle = computed(() => {
if (rule.value.deleted) {
return t('homepage.rule.enablerule');
return t('homepage.rule.enable_rule');
} else {
return t('homepage.rule.editrule');
return t('homepage.rule.edit_rule');
}
});
@@ -71,16 +71,16 @@ const boxSize = computed(() => {
<template>
<ab-popup v-model:show="show" :title="popupTitle" :css="boxSize">
<div v-if="rule.deleted">
<div>{{ $t('homepage.rule.enablehit') }}</div>
<div>{{ $t('homepage.rule.enable_hit') }}</div>
<div line my-8px></div>
<div fx-cer justify-center space-x-10px>
<ab-button size="small" type="warn" @click="() => emitEnable()">{{
$t('homepage.rule.yesbtn')
$t('homepage.rule.yes_btn')
}}</ab-button>
<ab-button size="small" @click="() => close()">{{
$t('homepage.rule.nobtn')
$t('homepage.rule.no_btn')
}}</ab-button>
</div>
</div>
@@ -111,7 +111,7 @@ const boxSize = computed(() => {
v-model:show="deleteFileDialog.show"
:title="$t('homepage.rule.delete')"
>
<div>{{ $t('homepage.rule.deletehit') }}</div>
<div>{{ $t('homepage.rule.delete_hit') }}</div>
<div line my-8px></div>
<div fx-cer justify-center space-x-10px>
@@ -119,10 +119,10 @@ const boxSize = computed(() => {
size="small"
type="warn"
@click="() => emitdeleteFile(true)"
>{{ $t('homepage.rule.yesbtn') }}</ab-button
>{{ $t('homepage.rule.yes_btn') }}</ab-button
>
<ab-button size="small" @click="() => emitdeleteFile(false)">{{
$t('homepage.rule.nobtn')
$t('homepage.rule.no_btn')
}}</ab-button>
</div>
</ab-popup>

View File

@@ -11,7 +11,7 @@ const rule = defineModel<BangumiRule>('rule', {
const items: SettingItem<BangumiRule>[] = [
{
configKey: 'official_title',
label: t('homepage.rule.officaltitle'),
label: t('homepage.rule.offical_title'),
type: 'input',
prop: {
type: 'text',

View File

@@ -45,7 +45,7 @@ const items = [
},
{
id: 5,
label: t('topbar.resetrule'),
label: t('topbar.reset_rule'),
icon: Format,
handle: resetRule,
},

View File

@@ -12,7 +12,7 @@ const downloaderType: DownloaderType = ['qbittorrent'];
const items: SettingItem<Downloader>[] = [
{
configKey: 'type',
label: t('config.downloaderset.type'),
label: t('config.downloader_set.type'),
type: 'select',
css: 'w-115px',
prop: {
@@ -21,7 +21,7 @@ const items: SettingItem<Downloader>[] = [
},
{
configKey: 'host',
label: t('config.downloaderset.host'),
label: t('config.downloader_set.host'),
type: 'input',
prop: {
type: 'text',
@@ -30,7 +30,7 @@ const items: SettingItem<Downloader>[] = [
},
{
configKey: 'username',
label: t('config.downloaderset.username'),
label: t('config.downloader_set.username'),
type: 'input',
prop: {
type: 'text',
@@ -39,7 +39,7 @@ const items: SettingItem<Downloader>[] = [
},
{
configKey: 'password',
label: t('config.downloaderset.password'),
label: t('config.downloader_set.password'),
type: 'input',
prop: {
type: 'text',
@@ -49,7 +49,7 @@ const items: SettingItem<Downloader>[] = [
},
{
configKey: 'path',
label: t('config.downloaderset.path'),
label: t('config.downloader_set.path'),
type: 'input',
prop: {
type: 'text',
@@ -58,14 +58,14 @@ const items: SettingItem<Downloader>[] = [
},
{
configKey: 'ssl',
label: t('config.downloaderset.ssl'),
label: t('config.downloader_set.ssl'),
type: 'switch',
},
];
</script>
<template>
<ab-fold-panel :title="$t('config.downloaderset.title')">
<ab-fold-panel :title="$t('config.downloader_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in items"

View File

@@ -12,12 +12,12 @@ const renameMethod: RenameMethod = ['normal', 'pn', 'advance', 'none'];
const items: SettingItem<BangumiManage>[] = [
{
configKey: 'enable',
label: t('config.manageset.enable'),
label: t('config.manage_set.enable'),
type: 'switch',
},
{
configKey: 'rename_method',
label: t('config.manageset.method'),
label: t('config.manage_set.method'),
type: 'select',
prop: {
items: renameMethod,
@@ -26,24 +26,24 @@ const items: SettingItem<BangumiManage>[] = [
},
{
configKey: 'eps_complete',
label: t('config.manageset.eps'),
label: t('config.manage_set.eps'),
type: 'switch',
},
{
configKey: 'group_tag',
label: t('config.manageset.grouptag'),
label: t('config.manage_set.group_tag'),
type: 'switch',
},
{
configKey: 'remove_bad_torrent',
label: t('config.manageset.deletebadtorr'),
label: t('config.manage_set.delete_bad_torrent'),
type: 'switch',
},
];
</script>
<template>
<ab-fold-panel :title="$t('config.manageset.title')">
<ab-fold-panel :title="$t('config.manage_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in items"

View File

@@ -12,7 +12,7 @@ const log = getSettingGroup('log');
const programItems: SettingItem<Program>[] = [
{
configKey: 'rss_time',
label: t('config.normalset.rssintvl'),
label: t('config.normal_set.rss_interval'),
type: 'input',
css: 'w-72px',
prop: {
@@ -22,7 +22,7 @@ const programItems: SettingItem<Program>[] = [
},
{
configKey: 'rename_time',
label: t('config.normalset.renameintvl'),
label: t('config.normal_set.rename_interval'),
type: 'input',
css: 'w-72px',
prop: {
@@ -32,7 +32,7 @@ const programItems: SettingItem<Program>[] = [
},
{
configKey: 'webui_port',
label: t('config.normalset.webport'),
label: t('config.normal_set.web_port'),
type: 'input',
css: 'w-72px',
prop: {
@@ -45,13 +45,13 @@ const programItems: SettingItem<Program>[] = [
const logItems: SettingItem<Log> = {
configKey: 'debug_enable',
label: t('config.normalset.debug'),
label: t('config.normal_set.debug'),
type: 'switch',
};
</script>
<template>
<ab-fold-panel :title="$t('config.normalset.title')">
<ab-fold-panel :title="$t('config.normal_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in programItems"

View File

@@ -17,13 +17,13 @@ const notificationType: NotificationType = [
const items: SettingItem<Notification>[] = [
{
configKey: 'enable',
label: t('config.notificationset.enable'),
label: t('config.notification_set.enable'),
type: 'switch',
bottomLine: true,
},
{
configKey: 'type',
label: t('config.notificationset.type'),
label: t('config.notification_set.type'),
type: 'select',
css: 'w-140px',
prop: {
@@ -32,7 +32,7 @@ const items: SettingItem<Notification>[] = [
},
{
configKey: 'token',
label: t('config.notificationset.token'),
label: t('config.notification_set.token'),
type: 'input',
prop: {
type: 'text',
@@ -41,7 +41,7 @@ const items: SettingItem<Notification>[] = [
},
{
configKey: 'chat_id',
label: t('config.notificationset.chatid'),
label: t('config.notification_set.chat_id'),
type: 'input',
prop: {
type: 'text',
@@ -52,7 +52,7 @@ const items: SettingItem<Notification>[] = [
</script>
<template>
<ab-fold-panel :title="$t('config.notificationset.title')">
<ab-fold-panel :title="$t('config.notification_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in items"

View File

@@ -21,12 +21,12 @@ const parserMethods: RssParserMethodType = ['tmdb', 'mikan', 'parser'];
const items: SettingItem<RssParser>[] = [
{
configKey: 'enable',
label: t('config.parserset.enable'),
label: t('config.parser_set.enable'),
type: 'switch',
},
{
configKey: 'type',
label: t('config.parserset.source'),
label: t('config.parser_set.source'),
type: 'select',
css: 'w-115px',
prop: {
@@ -35,7 +35,7 @@ const items: SettingItem<RssParser>[] = [
},
{
configKey: 'token',
label: t('config.parserset.token'),
label: t('config.parser_set.token'),
type: 'input',
prop: {
type: 'text',
@@ -44,7 +44,7 @@ const items: SettingItem<RssParser>[] = [
},
{
configKey: 'custom_url',
label: t('config.parserset.url'),
label: t('config.parser_set.url'),
type: 'input',
prop: {
type: 'text',
@@ -54,7 +54,7 @@ const items: SettingItem<RssParser>[] = [
},
{
configKey: 'language',
label: t('config.parserset.language'),
label: t('config.parser_set.language'),
type: 'select',
prop: {
items: langs,
@@ -62,7 +62,7 @@ const items: SettingItem<RssParser>[] = [
},
{
configKey: 'parser_type',
label: t('config.parserset.type'),
label: t('config.parser_set.type'),
type: 'select',
prop: {
items: parserMethods,
@@ -70,14 +70,14 @@ const items: SettingItem<RssParser>[] = [
},
{
configKey: 'filter',
label: t('config.parserset.exclude'),
label: t('config.parser_set.exclude'),
type: 'dynamic-tags',
},
];
</script>
<template>
<ab-fold-panel :title="$t('config.parserset.title')">
<ab-fold-panel :title="$t('config.parser_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in items"

View File

@@ -3,19 +3,19 @@ const { types, type, url } = storeToRefs(usePlayerStore());
</script>
<template>
<ab-fold-panel :title="$t('config.mediaplayerset.title')">
<ab-fold-panel :title="$t('config.media_player_set.title')">
<div space-y-12px>
<ab-setting
v-model:data="type"
type="select"
:label="$t('config.mediaplayerset.type')"
:label="$t('config.media_player_set.type')"
:prop="{ items: types }"
></ab-setting>
<ab-setting
v-model:data="url"
type="input"
:label="$t('config.mediaplayerset.url')"
:label="$t('config.media_player_set.url')"
:prop="{ placeholder: 'media player url' }"
></ab-setting>
</div>

View File

@@ -12,12 +12,12 @@ const proxyType: ProxyType = ['http', 'https', 'socks5'];
const items: SettingItem<Proxy>[] = [
{
configKey: 'enable',
label: t('config.proxyset.enable'),
label: t('config.proxy_set.enable'),
type: 'switch',
},
{
configKey: 'type',
label: t('config.proxyset.type'),
label: t('config.proxy_set.type'),
type: 'select',
prop: {
items: proxyType,
@@ -26,7 +26,7 @@ const items: SettingItem<Proxy>[] = [
},
{
configKey: 'host',
label: t('config.proxyset.host'),
label: t('config.proxy_set.host'),
type: 'input',
prop: {
type: 'text',
@@ -35,7 +35,7 @@ const items: SettingItem<Proxy>[] = [
},
{
configKey: 'port',
label: t('config.proxyset.port'),
label: t('config.proxy_set.port'),
type: 'input',
prop: {
type: 'text',
@@ -44,7 +44,7 @@ const items: SettingItem<Proxy>[] = [
},
{
configKey: 'username',
label: t('config.proxyset.username'),
label: t('config.proxy_set.username'),
type: 'input',
prop: {
type: 'text',
@@ -53,7 +53,7 @@ const items: SettingItem<Proxy>[] = [
},
{
configKey: 'password',
label: t('config.proxyset.password'),
label: t('config.proxy_set.password'),
type: 'input',
prop: {
type: 'text',
@@ -64,7 +64,7 @@ const items: SettingItem<Proxy>[] = [
</script>
<template>
<ab-fold-panel :title="$t('config.proxyset.title')">
<ab-fold-panel :title="$t('config.proxy_set.title')">
<div space-y-12px>
<ab-setting
v-for="i in items"

View File

@@ -3,7 +3,7 @@
"title": "Login",
"username": "Username",
"password": "Password",
"loginbtn": "Login",
"login_btn": "Login",
"default": "Default"
},
"sidebar": {
@@ -21,17 +21,17 @@
"pause": "Pause",
"restart": "Restart",
"shutdown": "Shutdown",
"resetrule": "Reset Rule",
"reset_rule": "Reset Rule",
"profile": {
"title": "Profile",
"poptitle": "Change Account",
"pop_title": "Change Account",
"username": "Username",
"password": "Password",
"updatebtn": "Update"
"update_btn": "Update"
},
"add": {
"title": "Add Bangumi",
"rsslink": "RSS Link",
"rss_link": "RSS Link",
"placeholder": "Please enter the RSS link",
"analyse": "Analyse"
}
@@ -39,7 +39,7 @@
"homepage": {
"title": "Bangumi List",
"rule": {
"officaltitle": "Official Title",
"offical_title": "Official Title",
"year": "Year",
"season": "Season",
"offset": "Offset",
@@ -48,12 +48,12 @@
"disable": "Disable",
"delete": "Delete",
"apply": "Apply",
"yesbtn": "Yes",
"nobtn": "No",
"enablehit": "Do you want to enable this rule?",
"deletehit": "Delete Local File?",
"enablerule": "Enable Rule",
"editrule": "Edit Rule"
"yes_btn": "Yes",
"no_btn": "No",
"enable_hit": "Do you want to enable this rule?",
"delete_hit": "Delete Local File?",
"enable_rule": "Enable Rule",
"edit_rule": "Edit Rule"
}
},
"player": {
@@ -64,21 +64,21 @@
"title": "Log",
"reset": "Reset",
"copy": "Copy",
"contactinfo": "Contact Infomation",
"contact_info": "Contact Infomation",
"go": "Go",
"join": "Join",
"bugrepo": "Bug Report"
"bug_repo": "Bug Report"
},
"config": {
"title": "Config",
"normalset": {
"normal_set": {
"title": "Normal Setting",
"rssintvl": "Interval Time of Rss",
"renameintvl": "Interval Time of Rename",
"webport": "WebUI Port",
"rss_interval": "Interval Time of Rss",
"rename_interval": "Interval Time of Rename",
"web_port": "WebUI Port",
"debug": "Debug"
},
"parserset": {
"parser_set": {
"title": "Parser Setting",
"enable": "Enable",
"source": "Source",
@@ -88,7 +88,7 @@
"type": "Parser Type",
"exclude": "Exclude"
},
"downloaderset": {
"downloader_set": {
"title": "Downloader Setting",
"type": "Downloader Type",
"host": "Host",
@@ -97,22 +97,22 @@
"path": "Download Path",
"ssl": "SSL"
},
"manageset": {
"manage_set": {
"title": "Manage Setting",
"enable": "Enable",
"method": "Rename Method",
"eps": "EPS complete",
"grouptag": "Add Group Tag",
"deletebadtorr": "Delete Bad Torrent"
"group_tag": "Add Group Tag",
"delete_bad_torrent": "Delete Bad Torrent"
},
"notificationset": {
"notification_set": {
"title": "Notification Setting",
"enable": "Enable",
"type": "Type",
"token": "Token",
"chatid": "Chat ID"
"chat_id": "Chat ID"
},
"proxyset": {
"proxy_set": {
"title": "Proxy Setting",
"enable": "Enable",
"type": "Proxy Type",
@@ -121,7 +121,7 @@
"username": "Username",
"password": "Password"
},
"mediaplayerset": {
"media_player_set": {
"title": "Media Player Setting",
"type": "type",
"url": "url"

View File

@@ -3,8 +3,8 @@
"title": "登录",
"username": "用户名",
"password": "密码",
"loginbtn": "登录",
"default": "默认账号密码 "
"login_btn": "登录",
"default": "默认账号密码"
},
"sidebar": {
"title": "菜单",
@@ -13,7 +13,7 @@
"log": "日志",
"config": "设置",
"logout": "退出",
"calendar": "日历",
"calendar": "番剧日历",
"downloader": "下载器"
},
"topbar": {
@@ -21,17 +21,17 @@
"pause": "暂停",
"restart": "重启",
"shutdown": "关闭",
"resetrule": "重置规则",
"reset_rule": "重置规则",
"profile": {
"title": "账户资料",
"poptitle": "修改账户信息",
"title": "账户设置",
"pop_title": "修改账户",
"username": "用户名",
"password": "密码",
"updatebtn": "更新"
"update_btn": "更新"
},
"add": {
"title": "添加番剧",
"rsslink": "RSS链接",
"rss_link": "RSS链接",
"placeholder": "请输入RSS链接",
"analyse": "分析"
}
@@ -39,46 +39,46 @@
"homepage": {
"title": "番剧列表",
"rule": {
"officaltitle": "官方名称",
"offical_title": "官方名称",
"year": "年份",
"season": "季度",
"offset": "偏移",
"offset": "剧集偏移",
"exclude": "排除",
"enable": "启用",
"disable": "禁用",
"delete": "删除",
"apply": "应用",
"yesbtn": "是",
"nobtn": "否",
"enablehit": "确定要让规则生效吗?",
"deletehit": "删除本地文件",
"enablerule": "启用规则",
"editrule": "编辑规则"
"yes_btn": "是",
"no_btn": "否",
"enable_hit": "确定启用该规则?",
"delete_hit": "是否删除本地文件?",
"enable_rule": "启用规则",
"edit_rule": "编辑规则"
}
},
"player": {
"title": "播放器",
"hit": "请设置播放器地址"
"hit": "请设置媒体播放器地址"
},
"log": {
"title": "日志",
"reset": "重置",
"copy": "复制",
"contactinfo": "联系方式",
"contact_info": "联系方式",
"go": "访问",
"join": "加入",
"bugrepo": "Bug反馈"
"bug_repo": "Bug 反馈"
},
"config": {
"title": "系统设置",
"normalset": {
"title": "一般设置",
"rssintvl": "RSS间隔",
"renameintvl": "重命名间隔",
"webport": "网页端口",
"normal_set": {
"title": "常规设置",
"rss_interval": "RSS 间隔",
"rename_interval": "重命名间隔",
"web_port": "网页端口",
"debug": "调试"
},
"parserset": {
"parser_set": {
"title": "解析设置",
"enable": "启用",
"source": "数据源",
@@ -88,7 +88,7 @@
"type": "解析类型",
"exclude": "排除"
},
"downloaderset": {
"downloader_set": {
"title": "下载设置",
"type": "下载器类型",
"host": "下载器地址",
@@ -97,22 +97,22 @@
"path": "下载地址",
"ssl": "SSL"
},
"manageset": {
"manage_set": {
"title": "番剧管理设置",
"enable": "启用",
"method": "重命名方式",
"eps": "EPS完成",
"grouptag": "添加组标签",
"deletebadtorr": "删除坏种"
"eps": "番剧补全",
"group_tag": "添加组标签",
"delete_bad_torrent": "删除坏种"
},
"notificationset": {
"notification_set": {
"title": "推送设置",
"enable": "启用",
"type": "类型",
"token": "Token",
"chatid": "Chat ID"
"chat_id": "Chat ID"
},
"proxyset": {
"proxy_set": {
"title": "代理设置",
"enable": "启用",
"type": "类型",
@@ -121,7 +121,7 @@
"username": "用户名",
"password": "密码"
},
"mediaplayerset": {
"media_player_set": {
"title": "播放器设置",
"type": "类型",
"url": "播放器地址"

View File

@@ -39,7 +39,7 @@ definePage({
</ab-container>
<div grow w-500px space-y-20px>
<ab-container :title="$t('log.contactinfo')">
<ab-container :title="$t('log.contact_info')">
<div space-y-12px>
<ab-label label="Github">
<ab-button
@@ -85,7 +85,7 @@ definePage({
</div>
</ab-container>
<ab-container :title="$t('log.bugrepo')">
<ab-container :title="$t('log.bug_repo')">
<div space-y-12px>
<ab-button
mx-auto

View File

@@ -33,7 +33,7 @@ definePage({
<div flex="~ justify-end">
<ab-button size="small" @click="login">{{
$t('login.loginbtn')
$t('login.login_btn')
}}</ab-button>
</div>
</div>