From e2a87eb4300d67c6911775ca24962475fbe1580a Mon Sep 17 00:00:00 2001
From: Louis Lam <louislam@users.noreply.github.com>
Date: Sun, 16 Jul 2023 21:15:25 +0800
Subject: [PATCH] Improve the filter translate keys

---
 src/components/MonitorListFilter.vue | 6 +++---
 src/lang/en.json                     | 2 ++
 src/lang/zh-HK.json                  | 2 ++
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/components/MonitorListFilter.vue b/src/components/MonitorListFilter.vue
index 2dcd062f..dbb1eb94 100644
--- a/src/components/MonitorListFilter.vue
+++ b/src/components/MonitorListFilter.vue
@@ -81,10 +81,10 @@
             <template #status>
                 <span v-if="filterState.active?.length === 1">
                     <span v-if="filterState.active[0]">{{ $t("Running") }}</span>
-                    <span v-else>{{ $t("Paused") }}</span>
+                    <span v-else>{{ $t("filterActivePaused") }}</span>
                 </span>
                 <span v-else>
-                    {{ $t('Active') }}
+                    {{ $t("filterActive") }}
                 </span>
             </template>
             <template #dropdown>
@@ -104,7 +104,7 @@
                 <li>
                     <div class="dropdown-item" tabindex="0" @click.stop="toggleActiveFilter(false)">
                         <div class="d-flex align-items-center justify-content-between">
-                            <span>{{ $t("Paused") }}</span>
+                            <span>{{ $t("filterActivePaused") }}</span>
                             <span class="ps-3">
                                 {{ $root.stats.pause }}
                                 <span v-if="filterState.active?.includes(false)" class="px-1 filter-active">
diff --git a/src/lang/en.json b/src/lang/en.json
index bc4f9ce3..ceafe06c 100644
--- a/src/lang/en.json
+++ b/src/lang/en.json
@@ -155,6 +155,8 @@
     "Disable 2FA": "Disable 2FA",
     "2FA Settings": "2FA Settings",
     "Two Factor Authentication": "Two Factor Authentication",
+    "filterActive": "Active",
+    "filterActivePaused": "Paused",
     "Active": "Active",
     "Inactive": "Inactive",
     "Token": "Token",
diff --git a/src/lang/zh-HK.json b/src/lang/zh-HK.json
index fd5d35e3..aa43caa5 100644
--- a/src/lang/zh-HK.json
+++ b/src/lang/zh-HK.json
@@ -139,6 +139,8 @@
     "Disable 2FA": "關閉 2FA",
     "2FA Settings": "2FA 設定",
     "Two Factor Authentication": "雙重認證",
+    "filterActive": "執行狀態",
+    "filterActivePaused": "已暫停",
     "Active": "生效",
     "Inactive": "未生效",
     "Token": "Token",