Overwrite standard translations (#11134)

Manage overwriting translations for standard fields and standard objects
properties
This commit is contained in:
Félix Malfait
2025-03-25 22:17:29 +01:00
committed by GitHub
parent 7a7003d859
commit 6ec06be18d
13 changed files with 1809 additions and 122 deletions

View File

@ -106,12 +106,13 @@ export class ObjectMetadataResolver {
async updateOneObject(
@Args('input') input: UpdateOneObjectInput,
@AuthWorkspace() { id: workspaceId }: Workspace,
@Context() context: I18nContext,
) {
try {
const updatedInput = (await this.beforeUpdateOneObject.run(
input,
const updatedInput = (await this.beforeUpdateOneObject.run(input, {
workspaceId,
)) as UpdateOneObjectInput;
locale: context.req.headers['x-locale'],
})) as UpdateOneObjectInput;
return await this.objectMetadataService.updateOneObject(
updatedInput,