refactor: complete i18n rename recipients to people, finalize tests

This commit is contained in:
2026-06-16 12:25:57 +02:00
parent ecc3cf1b55
commit 29c7c19cd8
13 changed files with 263 additions and 774 deletions
+6 -1
View File
@@ -10,6 +10,7 @@ const defaultPersonSchemaCopy: PersonSchemaCopy = {
departmentRequired: "Department is required",
emailInvalid: "Email format is invalid",
idRequired: "ID is required",
userIdInvalid: "User ID must be a valid UUID",
}
const personDepartments = [
@@ -37,7 +38,11 @@ function buildPersonBaseSchema(copy: PersonSchemaCopy) {
}),
email: z.string().optional().nullable(),
phone: z.string().optional().nullable(),
userId: z.string().uuid().optional().nullable(),
userId: z
.string()
.uuid({ error: copy.userIdInvalid })
.optional()
.nullable(),
})
}