feat: add Russian localization and independent STT languages
CI / Typecheck, tests, lint (push) Canceled after 0s
CI / Standalone (mac-arm64) (push) Canceled after 0s
CI / Standalone (linux-x64) (push) Canceled after 0s
CI / Standalone (windows-x64) (push) Canceled after 0s

This commit is contained in:
2026-10-25 17:18:44 +03:00
parent b277ee3e0f
commit a50ca4b867
93 changed files with 3261 additions and 904 deletions
+6 -4
View File
@@ -1,4 +1,6 @@
"use client";
import { useI18n } from "@/components/i18n";
/**
* The auto-update banner (Wave C, owner 2026-10-10: silent download +
@@ -19,6 +21,7 @@ import { useEffect, useState } from "react";
type UpdateStatus = { status: string; version: string | null };
export default function UpdateBanner() {
const { t } = useI18n();
const [ready, setReady] = useState<UpdateStatus | null>(null);
useEffect(() => {
@@ -35,16 +38,15 @@ export default function UpdateBanner() {
className="fixed right-4 bottom-4 z-50 flex items-center gap-3 rounded-lg border border-border bg-popover px-4 py-3 shadow-lg"
>
<div className="text-sm">
<span className="font-medium">LearnHarness {ready.version ?? "update"} is ready</span>
<span className="text-muted-foreground"> — restart to finish installing.</span>
<span className="font-medium">LearnHarness {ready.version ?? "update"}{" "}{t("is ready")}</span>
<span className="text-muted-foreground"> {" "}{t("— restart to finish installing.")}</span>
</div>
<button
type="button"
onClick={() => window.lh?.installUpdate?.()}
className="rounded-md bg-accent px-3 py-1.5 text-sm font-medium transition-colors hover:bg-accent/80"
>
Restart
</button>
{t("Restart")}</button>
</div>
);
}