Improve the filter translate keys

This commit is contained in:
Louis Lam 2023-07-16 21:15:25 +08:00
parent 80927332cb
commit e2a87eb430
3 changed files with 7 additions and 3 deletions

View File

@ -81,10 +81,10 @@
<template #status> <template #status>
<span v-if="filterState.active?.length === 1"> <span v-if="filterState.active?.length === 1">
<span v-if="filterState.active[0]">{{ $t("Running") }}</span> <span v-if="filterState.active[0]">{{ $t("Running") }}</span>
<span v-else>{{ $t("Paused") }}</span> <span v-else>{{ $t("filterActivePaused") }}</span>
</span> </span>
<span v-else> <span v-else>
{{ $t('Active') }} {{ $t("filterActive") }}
</span> </span>
</template> </template>
<template #dropdown> <template #dropdown>
@ -104,7 +104,7 @@
<li> <li>
<div class="dropdown-item" tabindex="0" @click.stop="toggleActiveFilter(false)"> <div class="dropdown-item" tabindex="0" @click.stop="toggleActiveFilter(false)">
<div class="d-flex align-items-center justify-content-between"> <div class="d-flex align-items-center justify-content-between">
<span>{{ $t("Paused") }}</span> <span>{{ $t("filterActivePaused") }}</span>
<span class="ps-3"> <span class="ps-3">
{{ $root.stats.pause }} {{ $root.stats.pause }}
<span v-if="filterState.active?.includes(false)" class="px-1 filter-active"> <span v-if="filterState.active?.includes(false)" class="px-1 filter-active">

View File

@ -155,6 +155,8 @@
"Disable 2FA": "Disable 2FA", "Disable 2FA": "Disable 2FA",
"2FA Settings": "2FA Settings", "2FA Settings": "2FA Settings",
"Two Factor Authentication": "Two Factor Authentication", "Two Factor Authentication": "Two Factor Authentication",
"filterActive": "Active",
"filterActivePaused": "Paused",
"Active": "Active", "Active": "Active",
"Inactive": "Inactive", "Inactive": "Inactive",
"Token": "Token", "Token": "Token",

View File

@ -139,6 +139,8 @@
"Disable 2FA": "關閉 2FA", "Disable 2FA": "關閉 2FA",
"2FA Settings": "2FA 設定", "2FA Settings": "2FA 設定",
"Two Factor Authentication": "雙重認證", "Two Factor Authentication": "雙重認證",
"filterActive": "執行狀態",
"filterActivePaused": "已暫停",
"Active": "生效", "Active": "生效",
"Inactive": "未生效", "Inactive": "未生效",
"Token": "Token", "Token": "Token",