i18n: complete internationalization for settings panel

- Add missing translation keys for all hint texts and descriptions
- Remove all hardcoded defaultValue parameters from components
- Add translations for window behavior, directory settings, and theme settings
- Add translations for provider-related UI elements
- Improve consistency across Chinese and English translations

Translation additions:
- common.toggleTheme
- settings.windowBehaviorHint, claudeConfigDirDescription, codexConfigDirDescription
- provider.* (12 new keys)
- providerForm.* (15 new keys)
- providerPreset.* (4 new keys)

Modified files: 10
Lines changed: +132 -74
This commit is contained in:
Jason
2025-10-19 11:01:53 +08:00
parent b036a94281
commit bae6a1cf55
10 changed files with 132 additions and 74 deletions

View File

@@ -13,9 +13,7 @@ export function ThemeSettings() {
<header className="space-y-1">
<h3 className="text-sm font-medium">{t("settings.theme")}</h3>
<p className="text-xs text-muted-foreground">
{t("settings.themeHint", {
defaultValue: "选择应用的外观主题,立即生效。",
})}
{t("settings.themeHint")}
</p>
</header>
<div className="inline-flex gap-1 rounded-md border border-border bg-background p-1">
@@ -24,21 +22,21 @@ export function ThemeSettings() {
onClick={() => setTheme("light")}
icon={Sun}
>
{t("settings.themeLight", { defaultValue: "浅色" })}
{t("settings.themeLight")}
</ThemeButton>
<ThemeButton
active={theme === "dark"}
onClick={() => setTheme("dark")}
icon={Moon}
>
{t("settings.themeDark", { defaultValue: "深色" })}
{t("settings.themeDark")}
</ThemeButton>
<ThemeButton
active={theme === "system"}
onClick={() => setTheme("system")}
icon={Monitor}
>
{t("settings.themeSystem", { defaultValue: "跟随系统" })}
{t("settings.themeSystem")}
</ThemeButton>
</div>
</section>