diff --git a/src/components/home/system-info-card.tsx b/src/components/home/system-info-card.tsx index 69e2ca72..8697291f 100644 --- a/src/components/home/system-info-card.tsx +++ b/src/components/home/system-info-card.tsx @@ -175,10 +175,10 @@ export const SystemInfoCard = () => { const info = await checkUpdate(); if (!info?.available) { showNotice.success( - t("settings.components.verge.advanced.notifications.latestVersion"), + "settings.components.verge.advanced.notifications.latestVersion", ); } else { - showNotice.info("Update Available", 2000); + showNotice.info("shared.feedback.notifications.updateAvailable", 2000); goToSettings(); } } catch (err) { diff --git a/src/components/setting/mods/dns-viewer.tsx b/src/components/setting/mods/dns-viewer.tsx index 14f2e431..bed87403 100644 --- a/src/components/setting/mods/dns-viewer.tsx +++ b/src/components/setting/mods/dns-viewer.tsx @@ -424,7 +424,7 @@ export function DnsViewer({ ref }: { ref?: Ref }) { skipYamlSyncRef.current = true; updateValuesFromConfig(parsedYaml); } catch { - showNotice.error("Invalid YAML format"); + showNotice.error("settings.modals.dns.errors.invalidYaml"); } }, [yamlContent, updateValuesFromConfig]); diff --git a/src/locales/ar/settings.json b/src/locales/ar/settings.json index 992fadce..4c01bff3 100644 --- a/src/locales/ar/settings.json +++ b/src/locales/ar/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/ar/shared.json b/src/locales/ar/shared.json index c644a07f..60410937 100644 --- a/src/locales/ar/shared.json +++ b/src/locales/ar/shared.json @@ -81,6 +81,7 @@ "importSuccess": "تم استيراد الملف الشخصي بنجاح", "importSubscriptionSuccess": "تم استيراد الاشتراك بنجاح", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "تم النسخ بنجاح", diff --git a/src/locales/de/settings.json b/src/locales/de/settings.json index b7649752..29a3cc39 100644 --- a/src/locales/de/settings.json +++ b/src/locales/de/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/de/shared.json b/src/locales/de/shared.json index 056434dd..22684cae 100644 --- a/src/locales/de/shared.json +++ b/src/locales/de/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Abonnement erfolgreich importiert", "importSubscriptionSuccess": "Abonnement erfolgreich importiert", "importWithClashProxy": "Abonnement mit Clash-Proxy importiert", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Kopieren erfolgreich", diff --git a/src/locales/en/settings.json b/src/locales/en/settings.json index eefde1a3..661ab2f7 100644 --- a/src/locales/en/settings.json +++ b/src/locales/en/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/en/shared.json b/src/locales/en/shared.json index b384888d..43616421 100644 --- a/src/locales/en/shared.json +++ b/src/locales/en/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Profile Imported Successfully", "importSubscriptionSuccess": "Import subscription successful", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Copy Success", diff --git a/src/locales/es/settings.json b/src/locales/es/settings.json index 8f846ef8..cbc1d05a 100644 --- a/src/locales/es/settings.json +++ b/src/locales/es/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/es/shared.json b/src/locales/es/shared.json index 7e26f82c..cb06326a 100644 --- a/src/locales/es/shared.json +++ b/src/locales/es/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Suscripción importada con éxito", "importSubscriptionSuccess": "Suscripción importada con éxito", "importWithClashProxy": "Suscripción importada con el proxy de Clash", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Copia exitosa", diff --git a/src/locales/fa/settings.json b/src/locales/fa/settings.json index a7e29bea..36a41769 100644 --- a/src/locales/fa/settings.json +++ b/src/locales/fa/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/fa/shared.json b/src/locales/fa/shared.json index f46c3ee7..374707ac 100644 --- a/src/locales/fa/shared.json +++ b/src/locales/fa/shared.json @@ -81,6 +81,7 @@ "importSuccess": "پروفایل با موفقیت وارد شد", "importSubscriptionSuccess": "وارد کردن اشتراک با موفقیت انجام شد", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "کپی با موفقیت انجام شد", diff --git a/src/locales/id/settings.json b/src/locales/id/settings.json index 97534ee0..4196f7fa 100644 --- a/src/locales/id/settings.json +++ b/src/locales/id/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/id/shared.json b/src/locales/id/shared.json index a34c9c7f..14eeec27 100644 --- a/src/locales/id/shared.json +++ b/src/locales/id/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Profil Berhasil Diimpor", "importSubscriptionSuccess": "Berlangganan Berhasil Diimpor", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Salin Berhasil", diff --git a/src/locales/jp/settings.json b/src/locales/jp/settings.json index 966cd0b8..51635416 100644 --- a/src/locales/jp/settings.json +++ b/src/locales/jp/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/jp/shared.json b/src/locales/jp/shared.json index ca129cbe..ac83ba54 100644 --- a/src/locales/jp/shared.json +++ b/src/locales/jp/shared.json @@ -81,6 +81,7 @@ "importSuccess": "プロファイルのインポートに成功しました。", "importSubscriptionSuccess": "サブスクリプションのインポートに成功しました。", "importWithClashProxy": "Clashプロキシを使用してプロファイルのインポートに成功しました。", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "コピー成功", diff --git a/src/locales/ko/settings.json b/src/locales/ko/settings.json index d0b0aea1..02c9143b 100644 --- a/src/locales/ko/settings.json +++ b/src/locales/ko/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/ko/shared.json b/src/locales/ko/shared.json index cbb9c18e..0dba1029 100644 --- a/src/locales/ko/shared.json +++ b/src/locales/ko/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Profile Imported Successfully", "importSubscriptionSuccess": "구독 가져오기 성공", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "복사 성공", diff --git a/src/locales/ru/settings.json b/src/locales/ru/settings.json index 2fef3588..3b6551ea 100644 --- a/src/locales/ru/settings.json +++ b/src/locales/ru/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/ru/shared.json b/src/locales/ru/shared.json index 9cb6a1ca..e7c5c861 100644 --- a/src/locales/ru/shared.json +++ b/src/locales/ru/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Профиль успешно импортирован", "importSubscriptionSuccess": "Подписка успешно импортирована", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Скопировано", diff --git a/src/locales/tr/settings.json b/src/locales/tr/settings.json index bd15eaa2..6c0adc84 100644 --- a/src/locales/tr/settings.json +++ b/src/locales/tr/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/tr/shared.json b/src/locales/tr/shared.json index 6ac4af29..f1ce8026 100644 --- a/src/locales/tr/shared.json +++ b/src/locales/tr/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Profil Başarıyla İçe Aktarıldı", "importSubscriptionSuccess": "Abonelik içe aktarımı başarılı", "importWithClashProxy": "Profil Clash vekil ile içe aktarıldı", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Kopyalama Başarılı", diff --git a/src/locales/tt/settings.json b/src/locales/tt/settings.json index c87e13d2..692c0b55 100644 --- a/src/locales/tt/settings.json +++ b/src/locales/tt/settings.json @@ -498,7 +498,8 @@ "configError": "DNS configuration error:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "Invalid YAML format" } }, "webUI": { diff --git a/src/locales/tt/shared.json b/src/locales/tt/shared.json index 11ca09e4..88199bd5 100644 --- a/src/locales/tt/shared.json +++ b/src/locales/tt/shared.json @@ -81,6 +81,7 @@ "importSuccess": "Профиль уңышлы импортланды", "importSubscriptionSuccess": "Import subscription successful", "importWithClashProxy": "Profile Imported with Clash proxy", + "updateAvailable": "Update Available", "saved": "Saved successfully", "common": { "copySuccess": "Күчерелде", diff --git a/src/locales/zh/settings.json b/src/locales/zh/settings.json index e859010f..368cdc4e 100644 --- a/src/locales/zh/settings.json +++ b/src/locales/zh/settings.json @@ -498,7 +498,8 @@ "configError": "DNS 配置错误:" }, "errors": { - "invalid": "配置无效" + "invalid": "配置无效", + "invalidYaml": "YAML 格式无效" } }, "webUI": { diff --git a/src/locales/zh/shared.json b/src/locales/zh/shared.json index 19e37415..788e1d79 100644 --- a/src/locales/zh/shared.json +++ b/src/locales/zh/shared.json @@ -81,6 +81,7 @@ "importSuccess": "导入订阅成功", "importSubscriptionSuccess": "导入订阅成功", "importWithClashProxy": "使用 Clash 代理导入订阅成功", + "updateAvailable": "有可用更新", "saved": "保存成功", "common": { "copySuccess": "复制成功", diff --git a/src/locales/zhtw/settings.json b/src/locales/zhtw/settings.json index 1851a6d0..cfc6ab3f 100644 --- a/src/locales/zhtw/settings.json +++ b/src/locales/zhtw/settings.json @@ -498,7 +498,8 @@ "configError": "DNS 設定錯誤:" }, "errors": { - "invalid": "Invalid configuration" + "invalid": "Invalid configuration", + "invalidYaml": "YAML 格式無效" } }, "webUI": { diff --git a/src/locales/zhtw/shared.json b/src/locales/zhtw/shared.json index 1ed71af2..48cb83c2 100644 --- a/src/locales/zhtw/shared.json +++ b/src/locales/zhtw/shared.json @@ -81,6 +81,7 @@ "importSuccess": "匯入設定檔成功", "importSubscriptionSuccess": "匯入訂閱成功", "importWithClashProxy": "使用 Clash 代理匯入訂閱成功", + "updateAvailable": "有可用更新", "saved": "儲存成功", "common": { "copySuccess": "複製成功",