fix: Update language validation regex to support locale variants

This commit is contained in:
Dries Augustyns
2026-04-05 11:42:25 +02:00
parent 9e2400c6de
commit 7834b9e7ef
+1 -2
View File
@@ -70,8 +70,7 @@ export const ProjectSchemas = {
tracking: z.nativeEnum(TrackingMode).optional(),
language: z
.string()
.length(2)
.regex(/^[a-z]{2}$/)
.regex(/^[a-z]{2}(-[A-Z]{2})?$/)
.optional(),
}),
} as const;