feat: add Russian Japanese localization and welcome templates

This commit is contained in:
illusia committed 2026-09-17 13:49:43 +08:00
1 parent 3d6752a5e4
commit 85f87ecd0b
15 files changed
+888 -56

No files matched your search

+3
View File
@@ -367,6 +367,9 @@ function readSettingsInput(body: Record<string, unknown>): AdminSettingsInput {
siteName: readString(body, "siteName", 80),
welcomeText: readOptionalString(body, "welcomeText", 500),
welcomeTextEn: typeof body.welcomeTextEn === "string" ? body.welcomeTextEn.slice(0, 500) : undefined,
welcomeTextDe: typeof body.welcomeTextDe === "string" ? body.welcomeTextDe.slice(0, 500) : undefined,
welcomeTextRu: typeof body.welcomeTextRu === "string" ? body.welcomeTextRu.slice(0, 500) : undefined,
welcomeTextJa: typeof body.welcomeTextJa === "string" ? body.welcomeTextJa.slice(0, 500) : undefined,
webRtcEnabled: body.webRtcEnabled === true,
webRtcUdpStart: readOptionalInteger(body, "webRtcUdpStart"),
webRtcUdpEnd: readOptionalInteger(body, "webRtcUdpEnd"),