fix: language code conversion (#53)

This commit is contained in:
UUBulb
2024-12-14 17:17:53 +08:00
committed by GitHub
parent 437a8d7b6c
commit c1177880c8
9 changed files with 38 additions and 6 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ export default function ServerPage() {
accessorFn: (row) => row.host.version || t("Unknown"),
},
{
header: t("Enable") + t("DDNS"),
header: t("EnableDDNS"),
accessorKey: "enableDDNS",
accessorFn: (row) => row.enable_ddns ?? false,
},
+1
View File
@@ -79,6 +79,7 @@ export default function SettingsPage() {
defaultValues: config
? {
...config,
language: config.language.replace("_", "-"),
site_name: config.site_name || "",
user_template:
config.user_template ||