Hello,

For #2856715: Push form, I am trying to PATCH entites to provide translation.

But I don't know how to do it with the JSON API because it seems to update the entity values and not create ones in another language.

So my question is: Is it possible to POST/PATCH content translation using the JSON API.

Thanks for any response.

Comments

Grimreaper created an issue. See original summary.

e0ipso’s picture

Translation is a tricky issue. I don't think that we have that figured out yet. Maybe @penyaskito knows how to deal with this.

@Grimreaper did you land on any solution?

Grimreaper’s picture

@e0ipso, thanks for the reply.

Sorry I have not searched a solution yet. I was waiting for a feedback before or maybe discussing a strategy of implementation.

I do not assign the issue to myself because I don't know when I would have time to search for that.

Wim Leers’s picture

Title: Patch entities to create translation » [PP-1] Creating translations (via PATCHing entities?)
Component: Documentation » Code
Category: Support request » Task
Priority: Normal » Major
Status: Active » Postponed
Issue tags: +API-First Initiative, +D8MI
Related issues: +#2135829: [PP-1] EntityResource: translations support

Yep, this should be blocked on #2135829: [PP-1] EntityResource: translations support, otherwise we risk introducing lots and lots of work-arounds in JSON API for core bugs. That's going to be untenable, both code-wise, and in terms of backwards compatibility.

So let's turn this from a support request into a major postponed task.

Wim Leers’s picture

Status: Postponed » Closed (duplicate)
Related issues: +#2794431: [META] Formalize translations support

Actually, this is a duplicate of #2794431: [META] Formalize translations support.

weynhamz’s picture

Sorry, please ignore me, post to wrong thread.

KikeBerni’s picture

Hello I was just wondering if the issue has been fixed. Is it possible to POST/PATCH content translation using the JSON API module?

Thanks for you time guys.