chore(i18n): replace literal notices with translation keys
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -424,7 +424,7 @@ export function DnsViewer({ ref }: { ref?: Ref<DialogRef> }) {
|
||||
skipYamlSyncRef.current = true;
|
||||
updateValuesFromConfig(parsedYaml);
|
||||
} catch {
|
||||
showNotice.error("Invalid YAML format");
|
||||
showNotice.error("settings.modals.dns.errors.invalidYaml");
|
||||
}
|
||||
}, [yamlContent, updateValuesFromConfig]);
|
||||
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "تم استيراد الملف الشخصي بنجاح",
|
||||
"importSubscriptionSuccess": "تم استيراد الاشتراك بنجاح",
|
||||
"importWithClashProxy": "Profile Imported with Clash proxy",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "تم النسخ بنجاح",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "پروفایل با موفقیت وارد شد",
|
||||
"importSubscriptionSuccess": "وارد کردن اشتراک با موفقیت انجام شد",
|
||||
"importWithClashProxy": "Profile Imported with Clash proxy",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "کپی با موفقیت انجام شد",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "プロファイルのインポートに成功しました。",
|
||||
"importSubscriptionSuccess": "サブスクリプションのインポートに成功しました。",
|
||||
"importWithClashProxy": "Clashプロキシを使用してプロファイルのインポートに成功しました。",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "コピー成功",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "Profile Imported Successfully",
|
||||
"importSubscriptionSuccess": "구독 가져오기 성공",
|
||||
"importWithClashProxy": "Profile Imported with Clash proxy",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "복사 성공",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "Профиль успешно импортирован",
|
||||
"importSubscriptionSuccess": "Подписка успешно импортирована",
|
||||
"importWithClashProxy": "Profile Imported with Clash proxy",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "Скопировано",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -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ı",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS configuration error:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "Invalid YAML format"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "Профиль уңышлы импортланды",
|
||||
"importSubscriptionSuccess": "Import subscription successful",
|
||||
"importWithClashProxy": "Profile Imported with Clash proxy",
|
||||
"updateAvailable": "Update Available",
|
||||
"saved": "Saved successfully",
|
||||
"common": {
|
||||
"copySuccess": "Күчерелде",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS 配置错误:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "配置无效"
|
||||
"invalid": "配置无效",
|
||||
"invalidYaml": "YAML 格式无效"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "导入订阅成功",
|
||||
"importSubscriptionSuccess": "导入订阅成功",
|
||||
"importWithClashProxy": "使用 Clash 代理导入订阅成功",
|
||||
"updateAvailable": "有可用更新",
|
||||
"saved": "保存成功",
|
||||
"common": {
|
||||
"copySuccess": "复制成功",
|
||||
|
||||
@@ -498,7 +498,8 @@
|
||||
"configError": "DNS 設定錯誤:"
|
||||
},
|
||||
"errors": {
|
||||
"invalid": "Invalid configuration"
|
||||
"invalid": "Invalid configuration",
|
||||
"invalidYaml": "YAML 格式無效"
|
||||
}
|
||||
},
|
||||
"webUI": {
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
"importSuccess": "匯入設定檔成功",
|
||||
"importSubscriptionSuccess": "匯入訂閱成功",
|
||||
"importWithClashProxy": "使用 Clash 代理匯入訂閱成功",
|
||||
"updateAvailable": "有可用更新",
|
||||
"saved": "儲存成功",
|
||||
"common": {
|
||||
"copySuccess": "複製成功",
|
||||
|
||||
Reference in New Issue
Block a user