mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
localizations
This commit is contained in:
parent
d5c720775f
commit
ad3d231d16
4 changed files with 18 additions and 9 deletions
|
@ -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")}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue