From 36ccbe5e778acdf6092b294afeb59a6ae6b8897c Mon Sep 17 00:00:00 2001
From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com>
Date: Wed, 30 Apr 2025 13:25:42 +0800
Subject: [PATCH] update
---
.../src/components/FocusSwitcherConfigurator.vue | 6 +++++-
packages/frontend/src/locales/en-US.json | 14 +++++++++++++-
packages/frontend/src/locales/zh-CN.json | 14 +++++++++++++-
packages/frontend/src/views/SettingsView.vue | 10 +++++-----
4 files changed, 36 insertions(+), 8 deletions(-)
diff --git a/packages/frontend/src/components/FocusSwitcherConfigurator.vue b/packages/frontend/src/components/FocusSwitcherConfigurator.vue
index df66d18..7c96026 100644
--- a/packages/frontend/src/components/FocusSwitcherConfigurator.vue
+++ b/packages/frontend/src/components/FocusSwitcherConfigurator.vue
@@ -213,6 +213,10 @@ const localAvailableInputs = computed(() => {
+
+
+ {{ t('focusSwitcher.altSwitchHint', '提示:按下 Alt 键可在配置的输入源之间快速切换焦点。') }}
+
@@ -285,7 +289,7 @@ const localAvailableInputs = computed(() => {
type="text"
v-model="localItemConfigs[input.id].shortcut"
class="shortcut-input w-24 px-2 py-1 border border-border rounded bg-background text-foreground text-xs text-center flex-shrink-0 placeholder-text-alt italic"
- :placeholder="t('focusSwitcher.shortcutPlaceholder')"
+ :placeholder="t('focusSwitcher.shortcutPlaceholder', '例如 Alt+K')"
@keydown.prevent="captureShortcut($event, localItemConfigs[input.id])"
/>
diff --git a/packages/frontend/src/locales/en-US.json b/packages/frontend/src/locales/en-US.json
index d830c54..bae9c07 100644
--- a/packages/frontend/src/locales/en-US.json
+++ b/packages/frontend/src/locales/en-US.json
@@ -663,6 +663,17 @@
},
"error": {
"saveFailed": "Failed to save sync target."
+ },
+ "timezone": {
+ "title": "Timezone Settings",
+ "selectLabel": "Select Timezone:",
+ "description": "Timestamps in notifications will be formatted according to this timezone.",
+ "success": {
+ "saved": "Timezone setting saved successfully."
+ },
+ "error": {
+ "saveFailed": "Failed to save timezone setting."
+ }
}
}
},
@@ -907,7 +918,8 @@
"confirmClose": "You have unsaved changes. Are you sure you want to close?",
"shortcutPlaceholder": "e.g., Alt+K",
"shortcutSettings": "Shortcut Settings",
- "noInputsAvailable": "No configurable inputs available"
+ "noInputsAvailable": "No configurable inputs available",
+ "altSwitchHint": "Hint: Press the Alt key to quickly switch focus between configured input sources."
},
"dockerManager": {
"loading": "Loading Docker Containers...",
diff --git a/packages/frontend/src/locales/zh-CN.json b/packages/frontend/src/locales/zh-CN.json
index 333638e..0c484aa 100644
--- a/packages/frontend/src/locales/zh-CN.json
+++ b/packages/frontend/src/locales/zh-CN.json
@@ -664,6 +664,17 @@
},
"error": {
"saveFailed": "保存同步目标失败。"
+ },
+ "timezone": {
+ "title": "时区设置",
+ "selectLabel": "选择时区:",
+ "description": "通知中的时间戳将根据此时区进行格式化。",
+ "success": {
+ "saved": "时区设置已成功保存。"
+ },
+ "error": {
+ "saveFailed": "保存时区设置失败。"
+ }
}
}
},
@@ -910,7 +921,8 @@
"confirmClose": "有未保存的更改,确定要关闭吗?",
"shortcutPlaceholder": "例如 Alt+K",
"shortcutSettings": "快捷键设置",
- "noInputsAvailable": "没有可配置的输入项"
+ "noInputsAvailable": "没有可配置的输入项",
+ "altSwitchHint": "提示:按下 Alt 键可在配置的输入源之间快速切换焦点。"
},
"dockerManager": {
"loading": "正在加载 Docker 容器...",
diff --git a/packages/frontend/src/views/SettingsView.vue b/packages/frontend/src/views/SettingsView.vue
index 451703d..e6611e3 100644
--- a/packages/frontend/src/views/SettingsView.vue
+++ b/packages/frontend/src/views/SettingsView.vue
@@ -440,10 +440,10 @@
-
{{ t('settings.timezone.title', '时区设置') }}
+
{{ t('settings.timezone.title') }}