From c98c14bbc7ba97ed8da1d2d7f72c02a2289b8c51 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Sun, 12 Jul 2026 12:27:48 -0500 Subject: [PATCH] feat(i18n): convert Settings hardware section to t() (Batch E) --- src/lib/views/Settings.svelte | 150 +++++++++++++++++++--------------- 1 file changed, 82 insertions(+), 68 deletions(-) diff --git a/src/lib/views/Settings.svelte b/src/lib/views/Settings.svelte index 1304ad5..7d03615 100644 --- a/src/lib/views/Settings.svelte +++ b/src/lib/views/Settings.svelte @@ -752,14 +752,18 @@ {:else if section === "hardware"}
-

Hardware

+

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

{#if settings.hardware}
- Active backend{settings.hardware.active} - · model {settings.hardware.modelSize} + {t("settings.hardware.active_backend")}{settings.hardware.active} + {t("settings.hardware.model_meta", { + size: settings.hardware.modelSize, + })}
-

- Falls back automatically (NPU → NVIDIA → AMD → Intel → CPU) if the chosen backend fails - to load. -

+

{t("settings.hardware.fallback_hint")}

-

Audio Devices

+

{t("settings.hardware.audio_devices")}

-

- WhispAssist records whatever this device plays (loopback) — the other side of the call. - Pick a specific output if you don't want it following Windows' system default. -

+

{t("settings.hardware.recording_device_hint")}

-

- Adds your own voice to the live transcript so both sides of the meeting are captured. - Stays on your device — nothing is uploaded. Choose “Off” to transcribe only the system - audio above. -

+

{t("settings.hardware.mic_hint")}

{#if settings.hardware.npu?.present} {@const npu = settings.hardware.npu} @@ -830,24 +824,27 @@
{#if !ready}

- Your NPU needs a one-time acceleration package (Whisper ONNX model{npu.runtimeReady - ? "" - : " + OpenVINO runtime"}). It downloads in the background; you can also start it - now. + {t("settings.hardware.npu_hint", { + extra: npu.runtimeReady ? "" : t("settings.hardware.plus_openvino"), + })}

{/if} {#if npuMsg}

{npuMsg}

{/if} @@ -861,29 +858,34 @@
{#if !dmlReady}

- Your GPU can be accelerated without Vulkan via DirectML — a one-time package - (Whisper ONNX model{dml.runtimeReady ? "" : " + DirectML runtime"}). + {t("settings.hardware.dml_hint", { + extra: dml.runtimeReady ? "" : t("settings.hardware.plus_directml"), + })}

{/if} {#if dmlMsg}

{dmlMsg}

{/if}
{/if} {:else} -

Hardware detection unavailable.

+

{t("settings.hardware.detection_unavailable")}

{/if} -

Models

+

{t("settings.hardware.models")}

Downloading… {pct !== null ? `${pct}%` : ""}{t("settings.hardware.downloading")} {pct !== null ? `${pct}%` : ""} {/if} @@ -942,19 +948,24 @@ disabled={m.active} onclick={() => settings.setActiveModel(m.id)} > -