From ad3d231d16fd4d057b18337e668c72515e2438e9 Mon Sep 17 00:00:00 2001 From: rift <117926989+Riftriot@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:36:54 -0600 Subject: [PATCH] localizations --- src/locales/en.json | 5 ++++- src/locales/es.json | 9 ++++++--- src/locales/ja.json | 5 ++++- src/pages/Settings/ProxyInput.tsx | 8 ++++---- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index eb99451..b88b173 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -64,7 +64,10 @@ "httpProxy": { "title": "(Advanced) HTTP Proxy", "subtitle": "Enter your own HTTP proxy to access geo-restricted content. This will only work with compatible Bare servers.", - "link": "What is this?" + "link": "What is this?", + "badBare": "Your Bare server doesn't support HTTP proxies.", + "badProxy": "Proxy connection failed. Please double check that your HTTP proxy is working.", + "reset": "Reset" } }, "titles": { diff --git a/src/locales/es.json b/src/locales/es.json index 64d84a1..7964762 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -61,9 +61,12 @@ "subtitle": "Elige una mirada para que tus ojos no nos odienn" }, "httpProxy": { - "title": "(Advanced) HTTP Proxy", - "subtitle": "Enter your own HTTP proxy to access geo-restricted content. This will only work with compatible Bare servers.", - "link": "What is this?" + "title": "Proxy HTTP (avanzado)", + "subtitle": "Ingrese su propio proxy HTTP para acceder a contenido restringido geográficamente. Esto solo funcionará con servidores Bare compatibles.", + "link": "¿Qué es esto?", + "badBare": "Su servidor Bare no soporta servidores proxy HTTP.", + "badProxy": "Error en la conexión del proxy. Verifique que su proxy HTTP esté funcionando.", + "reset": "Reiniciar" } }, "titles": { diff --git a/src/locales/ja.json b/src/locales/ja.json index 8438c10..3a164a2 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -63,7 +63,10 @@ "httpProxy": { "title": "(高度な) HTTPプロキシ", "subtitle": "地理的に制限されたコンテンツにアクセスするために、あなた自身のHTTPプロキシを入力してください。これは互換性のあるBareサーバーでのみ機能します。", - "link": "これは何ですか?" + "link": "これは何ですか?", + "badBare": "その bare サーバーは HTTP プロキシをサポートしていません。", + "badProxy": "プロキシ接続に失敗しました。 HTTP プロキシが動作していることを再確認してください。", + "reset": "リセット" } }, "titles": { diff --git a/src/pages/Settings/ProxyInput.tsx b/src/pages/Settings/ProxyInput.tsx index 0e13247..14682f0 100644 --- a/src/pages/Settings/ProxyInput.tsx +++ b/src/pages/Settings/ProxyInput.tsx @@ -73,7 +73,7 @@ function ProxyInput(props: BareInputProps) { ( document.getElementById("pinput") as HTMLInputElement ).value = localStorage.getItem("HTTPProxy") || ""; - toast("Bad proxy", { + toast(t("settings.httpProxy.badProxy"), { type: "error" }); } @@ -81,14 +81,14 @@ function ProxyInput(props: BareInputProps) { .catch((error) => { (document.getElementById("pinput") as HTMLInputElement).value = localStorage.getItem("HTTPProxy") || ""; - toast("Bad proxy", { + toast(t("settings.httpProxy.badProxy"), { type: "error" }); }); } else { (document.getElementById("pinput") as HTMLInputElement).value = localStorage.getItem("HTTPProxy") || ""; - toast("That bare server doesn't support HTTP proxies!", { + toast(t("settings.httpProxy.badBare"), { type: "error" }); } @@ -129,7 +129,7 @@ function ProxyInput(props: BareInputProps) { className="font-roboto mt-2 flex h-4 w-36 cursor-pointer flex-row items-center justify-center rounded-xl border border-input-border-color bg-input p-5 text-center text-lg" onClick={resetProxy} > - Reset + {t("settings.httpProxy.reset")}