feat: add i18n translated form errors (#509)

This commit is contained in:
Meier Lukas
2024-05-18 16:55:08 +02:00
committed by GitHub
parent b312032f02
commit dfed804f65
32 changed files with 501 additions and 156 deletions

View File

@@ -16,7 +16,7 @@ const boardNameSchema = z
.string()
.min(1)
.max(255)
.regex(/^[A-Za-z0-9-\\._]+$/);
.regex(/^[A-Za-z0-9-\\._]*$/);
const byNameSchema = z.object({
name: boardNameSchema,
@@ -53,12 +53,7 @@ const savePartialSettingsSchema = z
customCss: z.string().max(16384),
columnCount: z.number().min(1).max(24),
})
.partial()
.and(
z.object({
id: z.string(),
}),
);
.partial();
const saveSchema = z.object({
id: z.string(),