diff --git a/src/components/proxy/provider-button.tsx b/src/components/proxy/provider-button.tsx index d031a5b3..b0ceee78 100644 --- a/src/components/proxy/provider-button.tsx +++ b/src/components/proxy/provider-button.tsx @@ -168,8 +168,9 @@ export const ProviderButton = () => { variant="contained" size="small" onClick={updateAllProviders} + aria-label={t("pages.proxies.provider.actions.updateAll")} > - {t("Update All")} + {t("pages.proxies.provider.actions.updateAll")} @@ -327,7 +328,8 @@ export const ProviderButton = () => { "100%": { transform: "rotate(360deg)" }, }, }} - title={t("Update Provider") as string} + title={t("pages.proxies.provider.actions.update")} + aria-label={t("pages.proxies.provider.actions.update")} > diff --git a/src/components/rule/provider-button.tsx b/src/components/rule/provider-button.tsx index 8e2d3cb1..5aaef093 100644 --- a/src/components/rule/provider-button.tsx +++ b/src/components/rule/provider-button.tsx @@ -159,7 +159,7 @@ export const ProviderButton = () => { size="small" onClick={updateAllProviders} > - {t("Update All")} + {t("pages.rules.provider.actions.updateAll")} @@ -260,6 +260,7 @@ export const ProviderButton = () => { color="primary" onClick={() => updateProvider(key)} disabled={isUpdating} + aria-label={t("pages.rules.provider.actions.update")} sx={{ animation: isUpdating ? "spin 1s linear infinite" @@ -269,7 +270,7 @@ export const ProviderButton = () => { "100%": { transform: "rotate(360deg)" }, }, }} - title={t("Update Provider") as string} + title={t("pages.rules.provider.actions.update")} > diff --git a/src/locales/ar.json b/src/locales/ar.json index 01ccd3c2..0c14bc1d 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "مزود الوكيل" + "title": "مزود الوكيل", + "actions": { + "updateAll": "تحديث الكل", + "update": "تحديث" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "القواعد", "provider": { "trigger": "مزود القواعد", - "dialogTitle": "مزود القواعد" + "dialogTitle": "مزود القواعد", + "actions": { + "updateAll": "تحديث الكل", + "update": "تحديث" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "الإعدادات", "Proxies": "الوكلاء", - "Update All": "تحديث الكل", "Update At": "التحديث عند", "rule": "قاعدة", "global": "عالمي", diff --git a/src/locales/de.json b/src/locales/de.json index 02249560..f469b8e0 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Proxy-Sammlung" + "title": "Proxy-Sammlung", + "actions": { + "updateAll": "Alle aktualisieren", + "update": "Aktualisieren" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Regeln", "provider": { "trigger": "Regelsammlung", - "dialogTitle": "Regelsammlung" + "dialogTitle": "Regelsammlung", + "actions": { + "updateAll": "Alle aktualisieren", + "update": "Aktualisieren" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Testen", "Label-Settings": "Einstellungen", "Proxies": "Proxies", - "Update All": "Alle aktualisieren", "Update At": "Aktualisiert am", "rule": "Regel", "global": "Global", diff --git a/src/locales/en.json b/src/locales/en.json index 8a894a2f..8ee71f59 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Proxy Provider" + "title": "Proxy Provider", + "actions": { + "updateAll": "Update All", + "update": "Update" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Rules", "provider": { "trigger": "Rule Provider", - "dialogTitle": "Rule Providers" + "dialogTitle": "Rule Providers", + "actions": { + "updateAll": "Update All", + "update": "Update" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "Settings", "Proxies": "Proxies", - "Update All": "Update All", "Update At": "Update At", "rule": "rule", "global": "global", diff --git a/src/locales/es.json b/src/locales/es.json index b4ba8d78..55e2aac2 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Proveedor de proxies" + "title": "Proveedor de proxies", + "actions": { + "updateAll": "Actualizar todo", + "update": "Actualizar" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Reglas", "provider": { "trigger": "Proveedor de reglas", - "dialogTitle": "Proveedor de reglas" + "dialogTitle": "Proveedor de reglas", + "actions": { + "updateAll": "Actualizar todo", + "update": "Actualizar" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Descubrir", "Label-Settings": "Ajustes", "Proxies": "Proxies", - "Update All": "Actualizar todo", "Update At": "Actualizado el", "rule": "Regla", "global": "Global", diff --git a/src/locales/fa.json b/src/locales/fa.json index 6e9c0f0e..722c3984 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "تأمین‌کننده پروکسی" + "title": "تأمین‌کننده پروکسی", + "actions": { + "updateAll": "به‌روزرسانی همه", + "update": "به‌روزرسانی" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "قوانین", "provider": { "trigger": "تأمین‌کننده قانون", - "dialogTitle": "تأمین‌کننده قانون" + "dialogTitle": "تأمین‌کننده قانون", + "actions": { + "updateAll": "به‌روزرسانی همه", + "update": "به‌روزرسانی" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "تنظیمات", "Proxies": "پراکسی‌ها", - "Update All": "به‌روزرسانی همه", "Update At": "به‌روزرسانی در", "rule": "قانون", "global": "جهانی", diff --git a/src/locales/id.json b/src/locales/id.json index 46f75f05..1f674c66 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Penyedia Proksi" + "title": "Penyedia Proksi", + "actions": { + "updateAll": "Perbarui Semua", + "update": "Perbarui" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Aturan", "provider": { "trigger": "Penyedia Aturan", - "dialogTitle": "Penyedia Aturan" + "dialogTitle": "Penyedia Aturan", + "actions": { + "updateAll": "Perbarui Semua", + "update": "Perbarui" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "Pengaturan", "Proxies": "Proksi", - "Update All": "Perbarui Semua", "Update At": "Diperbarui Pada", "rule": "aturan", "global": "global", diff --git a/src/locales/jp.json b/src/locales/jp.json index e7117c33..464967f4 100644 --- a/src/locales/jp.json +++ b/src/locales/jp.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "プロキシプロバイダー" + "title": "プロキシプロバイダー", + "actions": { + "updateAll": "すべて更新", + "update": "更新" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "ルール", "provider": { "trigger": "ルールプロバイダー", - "dialogTitle": "ルールプロバイダー" + "dialogTitle": "ルールプロバイダー", + "actions": { + "updateAll": "すべて更新", + "update": "更新" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "テスト", "Label-Settings": "設定", "Proxies": "Proxies", - "Update All": "すべて更新", "Update At": "更新日時", "rule": "ルール", "global": "グローバル", diff --git a/src/locales/ko.json b/src/locales/ko.json index 22884c30..e398decb 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "프록시 제공자" + "title": "프록시 제공자", + "actions": { + "updateAll": "모두 업데이트", + "update": "업데이트" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "규칙", "provider": { "trigger": "규칙 제공자", - "dialogTitle": "규칙 제공자" + "dialogTitle": "규칙 제공자", + "actions": { + "updateAll": "모두 업데이트", + "update": "업데이트" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "테스트", "Label-Settings": "설정", "Proxies": "프록시", - "Update All": "모두 업데이트", "Update At": "업데이트 시간", "rule": "규칙", "global": "전역", diff --git a/src/locales/ru.json b/src/locales/ru.json index fde5725f..d9ba3bbd 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Провайдер прокси" + "title": "Провайдер прокси", + "actions": { + "updateAll": "Обновить все", + "update": "Обновить" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Правила", "provider": { "trigger": "Провайдеры правил", - "dialogTitle": "Провайдеры правил" + "dialogTitle": "Провайдеры правил", + "actions": { + "updateAll": "Обновить все", + "update": "Обновить" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Тест", "Label-Settings": "Настройки", "Proxies": "Прокси", - "Update All": "Обновить все", "Update At": "Обновлено в", "rule": "правила", "global": "глобальный", diff --git a/src/locales/tr.json b/src/locales/tr.json index 3cd8b06e..84711599 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Vekil Sağlayıcısı" + "title": "Vekil Sağlayıcısı", + "actions": { + "updateAll": "Tümünü Güncelle", + "update": "Güncelle" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Kurallar", "provider": { "trigger": "Kural Sağlayıcısı", - "dialogTitle": "Kural Sağlayıcısı" + "dialogTitle": "Kural Sağlayıcısı", + "actions": { + "updateAll": "Tümünü Güncelle", + "update": "Güncelle" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "Ayarlar", "Proxies": "Vekil'ler", - "Update All": "Tümünü Güncelle", "Update At": "Güncelleme Zamanı", "rule": "kural", "global": "küresel", diff --git a/src/locales/tt.json b/src/locales/tt.json index b95dcf22..18aa1521 100644 --- a/src/locales/tt.json +++ b/src/locales/tt.json @@ -54,7 +54,11 @@ "clearChainConfig": "Delete Chain Config" }, "provider": { - "title": "Прокси провайдеры" + "title": "Прокси провайдеры", + "actions": { + "updateAll": "Барысын да яңарту", + "update": "Яңарту" + } }, "rules": { "title": "Proxy Rules", @@ -94,7 +98,11 @@ "title": "Кагыйдәләр", "provider": { "trigger": "Кагыйдә провайдеры", - "dialogTitle": "Кагыйдә провайдеры" + "dialogTitle": "Кагыйдә провайдеры", + "actions": { + "updateAll": "Барысын да яңарту", + "update": "Яңарту" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "Test", "Label-Settings": "Көйләүләр", "Proxies": "Прокси", - "Update All": "Барысын да яңарту", "Update At": "Яңартылган вакыт", "rule": "кагыйдә", "global": "глобаль", diff --git a/src/locales/zh.json b/src/locales/zh.json index 166d076a..8e269db8 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -54,7 +54,11 @@ "clearChainConfig": "删除链式配置" }, "provider": { - "title": "代理集合" + "title": "代理集合", + "actions": { + "updateAll": "更新全部", + "update": "更新" + } }, "rules": { "title": "代理规则", @@ -94,7 +98,11 @@ "title": "规则", "provider": { "trigger": "规则集合", - "dialogTitle": "规则集合" + "dialogTitle": "规则集合", + "actions": { + "updateAll": "更新全部", + "update": "更新" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "测 试", "Label-Settings": "设 置", "Proxies": "代理", - "Update All": "更新全部", "Update At": "更新于", "rule": "规则", "global": "全局", diff --git a/src/locales/zhtw.json b/src/locales/zhtw.json index 4b9f7ef6..333a8c42 100644 --- a/src/locales/zhtw.json +++ b/src/locales/zhtw.json @@ -54,7 +54,11 @@ "clearChainConfig": "刪除鏈式設定" }, "provider": { - "title": "代理集合" + "title": "代理集合", + "actions": { + "updateAll": "全部更新", + "update": "更新" + } }, "rules": { "title": "代理規則", @@ -94,7 +98,11 @@ "title": "規則", "provider": { "trigger": "規則集合", - "dialogTitle": "規則集合" + "dialogTitle": "規則集合", + "actions": { + "updateAll": "全部更新", + "update": "更新" + } } }, "profiles": { @@ -182,7 +190,6 @@ "Label-Unlock": "解 鎖", "Label-Settings": "設 定", "Proxies": "代理", - "Update All": "全部更新", "Update At": "更新於", "rule": "規則", "global": "全域",