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
+8 -4
View File
@@ -1,4 +1,5 @@
"use client";
import { useI18n } from "@/components/i18n";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
@@ -15,7 +16,9 @@ export const MermaidError = ({
error,
retry,
className,
}: MermaidErrorComponentProps & { className?: string }) => (
}: MermaidErrorComponentProps & { className?: string }) => {
const { t } = useI18n();
return (
<div
className={cn(
"my-4 rounded-xl border border-destructive/40 bg-destructive/5 p-4",
@@ -24,21 +27,22 @@ export const MermaidError = ({
data-streamdown="mermaid-error"
>
<p className="text-sm font-medium text-destructive">
Diagram failed to render
{t("Diagram failed to render")}
</p>
<p className="mt-1 font-mono text-xs break-words text-muted-foreground">
{error}
</p>
<details className="mt-3">
<summary className="cursor-pointer text-xs text-muted-foreground">
Show diagram source
{t("Show diagram source")}
</summary>
<pre className="mt-2 overflow-x-auto rounded-lg bg-muted p-3 font-mono text-xs text-foreground">
{chart}
</pre>
</details>
<Button className="mt-3" onClick={retry} size="sm" variant="outline">
Retry
{t("Retry")}
</Button>
</div>
);
};