feat: 支持多语言能力

This commit is contained in:
2026-01-24 10:10:52 +08:00
parent 77c048b6a2
commit e2280b12e2
23 changed files with 2373 additions and 374 deletions

View File

@@ -6,6 +6,7 @@ import { Slider } from "@/components/ui/slider";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { cn } from "@/lib/utils";
import { useTranslation } from "@/lib/i18n";
export interface ConfigOption {
id: string;
@@ -38,6 +39,8 @@ export function ConfigPanel({
onReset,
className,
}: ConfigPanelProps) {
const { t } = useTranslation();
return (
<Card className={className}>
<CardHeader>
@@ -50,7 +53,7 @@ export function ConfigPanel({
</div>
{onReset && (
<Button variant="ghost" size="sm" onClick={onReset}>
Reset
{t("common.reset")}
</Button>
)}
</div>