fix(i18n): harden owner localized forms
This commit is contained in:
@@ -219,6 +219,7 @@ export const revisionCreateSchema = z.object({
|
||||
id: resourceIdSchema.optional(),
|
||||
projectId: resourceIdSchema,
|
||||
description: z.string().trim().min(1).max(20_000),
|
||||
sourceLocale: z.string().trim().min(2).max(12).nullable().optional(),
|
||||
});
|
||||
export const revisionStatusSchema = z.enum(revisionStatuses);
|
||||
|
||||
|
||||
@@ -433,6 +433,7 @@ export class DomainService {
|
||||
clientId: scope.clientId,
|
||||
requestedByUserId: scope.authUserId,
|
||||
description: value.description,
|
||||
sourceLocale: value.sourceLocale,
|
||||
}).returning().get();
|
||||
}, { behavior: "immediate" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user