refactor: restructure i18n locale keys for better maintainability (#5744)

Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
memoclaw
2026-03-20 05:56:56 +08:00
committed by GitHub
parent 6f1f3d81c5
commit e0334cf0a8
56 changed files with 2886 additions and 2878 deletions
@@ -106,23 +106,23 @@ function UpdateCustomizedProfileDialog({ open, onOpenChange, onSuccess }: Props)
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-2xl">
<DialogHeader>
<DialogTitle>{t("setting.system-section.customize-server.title")}</DialogTitle>
<DialogTitle>{t("setting.system.customize-server.title")}</DialogTitle>
<DialogDescription>Customize your instance appearance and settings.</DialogDescription>
</DialogHeader>
<div className="grid gap-4">
<div className="grid gap-2">
<Label htmlFor="server-name">{t("setting.system-section.server-name")}</Label>
<Label htmlFor="server-name">{t("setting.system.server-name")}</Label>
<Input id="server-name" type="text" value={customProfile.title} onChange={handleNameChanged} placeholder="Enter server name" />
</div>
<div className="grid gap-2">
<Label htmlFor="icon-url">{t("setting.system-section.customize-server.icon-url")}</Label>
<Label htmlFor="icon-url">{t("setting.system.customize-server.icon-url")}</Label>
<Input id="icon-url" type="text" value={customProfile.logoUrl} onChange={handleLogoUrlChanged} placeholder="Enter icon URL" />
</div>
<div className="grid gap-2">
<Label htmlFor="description">{t("setting.system-section.customize-server.description")}</Label>
<Label htmlFor="description">{t("setting.system.customize-server.description")}</Label>
<Textarea
id="description"
rows={3}