From a6830839b4791b313e18930d65e19057e02c5e60 Mon Sep 17 00:00:00 2001 From: wctang Date: Mon, 4 Aug 2025 14:51:13 +0800 Subject: [PATCH 1/2] Change the translation of 'state'. --- frontend/src/locales/zh_TW/common.json | 6 +++--- frontend/src/locales/zh_TW/play.json | 6 +++--- frontend/src/locales/zh_TW/rom.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/locales/zh_TW/common.json b/frontend/src/locales/zh_TW/common.json index d1d13fbb5..073796355 100644 --- a/frontend/src/locales/zh_TW/common.json +++ b/frontend/src/locales/zh_TW/common.json @@ -35,9 +35,9 @@ "server-stats": "伺服器狀態", "size-on-disk": "占用磁碟空間", "slug": "網址關鍵字", - "state": "狀態", - "states": "狀態", - "states-n": "{n} 狀態 | {n} 狀態", + "state": "即時存檔", + "states": "即時存檔", + "states-n": "{n} 即時存檔 | {n} 即時存檔", "update": "更新", "upload": "上傳", "user-interface": "使用界面", diff --git a/frontend/src/locales/zh_TW/play.json b/frontend/src/locales/zh_TW/play.json index a929c4b84..0d9eaed2e 100644 --- a/frontend/src/locales/zh_TW/play.json +++ b/frontend/src/locales/zh_TW/play.json @@ -12,9 +12,9 @@ "select-save": "選擇存檔", "change-save": "更改存檔", "deselect-save": "取消選擇存檔", - "select-state": "選擇狀態", - "change-state": "更改狀態", - "deselect-state": "取消選擇狀態", + "select-state": "選擇即時存檔", + "change-state": "更改即時存檔", + "deselect-state": "取消選擇即時存檔", "background-color": "背景顏色", "select-background-color": "選擇背景顏色" } diff --git a/frontend/src/locales/zh_TW/rom.json b/frontend/src/locales/zh_TW/rom.json index 643d3e210..c4d5d3122 100644 --- a/frontend/src/locales/zh_TW/rom.json +++ b/frontend/src/locales/zh_TW/rom.json @@ -32,7 +32,7 @@ "name": "名稱", "no-metadata-source": "未啟用元數據來源", "no-saves-found": "未找到存檔", - "no-states-found": "未找到狀態", + "no-states-found": "未找到即時存檔", "now-playing": "正在遊玩", "personal": "私人", "public-notes": "公共筆記", From eb37bfdb9057d1023ec3cc494e12d273f044ce19 Mon Sep 17 00:00:00 2001 From: wctang Date: Tue, 5 Aug 2025 14:54:53 +0800 Subject: [PATCH 2/2] update ui translation. --- frontend/src/components/Details/GameData.vue | 6 ++++-- frontend/src/components/Details/Info/GameInfo.vue | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Details/GameData.vue b/frontend/src/components/Details/GameData.vue index eefe616cd..e853db222 100644 --- a/frontend/src/components/Details/GameData.vue +++ b/frontend/src/components/Details/GameData.vue @@ -4,8 +4,10 @@ import States from "@/components/Details/States.vue"; import type { DetailedRom } from "@/stores/roms"; import { ref } from "vue"; import { useDisplay } from "vuetify"; +import { useI18n } from "vue-i18n"; // Props +const { t } = useI18n(); defineProps<{ rom: DetailedRom }>(); const tab = ref<"saves" | "states">("saves"); const { mdAndDown } = useDisplay(); @@ -25,13 +27,13 @@ const { mdAndDown } = useDisplay(); prepend-icon="mdi-content-save" class="rounded text-caption" value="saves" - >Saves{{ t("common.saves") }} States{{ t("common.states") }} diff --git a/frontend/src/components/Details/Info/GameInfo.vue b/frontend/src/components/Details/Info/GameInfo.vue index bb62043aa..077d32d47 100644 --- a/frontend/src/components/Details/Info/GameInfo.vue +++ b/frontend/src/components/Details/Info/GameInfo.vue @@ -168,7 +168,7 @@ function onFilterClick(filter: FilterType, value: string) { > - Age Rating + {{ t("rom.age-rating") }}