feat: add Russian localization and independent STT languages
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user