From d2f35c64b1dfd4e59b88a272b5c954ac445add21 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Sun, 12 Jul 2026 12:37:22 -0500 Subject: [PATCH] feat(i18n): convert Settings MCP section to t() (Batch E) --- src/lib/views/Settings.svelte | 78 +++++++++++++++-------------------- 1 file changed, 34 insertions(+), 44 deletions(-) diff --git a/src/lib/views/Settings.svelte b/src/lib/views/Settings.svelte index 8665e23..facf8a0 100644 --- a/src/lib/views/Settings.svelte +++ b/src/lib/views/Settings.svelte @@ -1706,15 +1706,12 @@ {:else if section === "mcp"}
-

MCP server

+

{t("settings.mcp.title")}

@@ -1725,23 +1722,21 @@ disabled={settings.mcpSaving} onchange={(e) => toggleMcpEnabled((e.target as HTMLInputElement).checked)} /> - Enable the MCP server + {t("settings.mcp.enable")} -

- Off by default. Loopback-only, token-gated — nothing is reachable from the network. -

+

{t("settings.mcp.enable_hint")}

{#if mcpTransport === "http"} {#if settings.mcpLastToken}
-

- This won't be shown again. It's stored in your OS credential store; if you lose it, - turn the server off and back on to mint a new one. -

+

{t("settings.mcp.token_hint")}

{settings.mcpLastToken}
@@ -1808,40 +1793,45 @@ {#if settings.mcpStatus?.enabled}
- Endpoint{settings.mcpStatus.endpoint} + {t("settings.mcp.endpoint")}{settings.mcpStatus.endpoint}

- Point your agent's MCP client config at this - {settings.mcpStatus.transport === "stdio" ? "command" : "URL"}, with the token above as - a bearer credential. + {t("settings.mcp.endpoint_hint", { + kind: + settings.mcpStatus.transport === "stdio" + ? t("settings.mcp.kind_command") + : t("settings.mcp.kind_url"), + })}

{/if} -

Access log

-

Every tool read an agent makes, allowed or denied (FR-MCP-5).

+

{t("settings.mcp.access_log")}

+

{t("settings.mcp.access_log_hint")}

{#if settings.mcpAccessLog.length === 0} -

No agent has read anything yet.

+

{t("settings.mcp.no_reads")}

{:else} - + {/if}
{:else if section === "privacy"}