- Issue created by @enchufe
- Merge request !5Issue #3469440: Plugin doesn't work with entity translations → (Open) created by enchufe
- Issue was unassigned.
- Status changed to Needs review
3 months ago 1:07pm 21 August 2024
Many of the entities generated by the plugin are translatable, so if you want to generate a translation, a new entity will be generated instead with a language that is not the default site's language.
As a solution I have added to the base configuration the translation
option, which has to be TRUE
, it will check in the values the id
key to load the parent entity and remove id
from the values to avoid conflicts in the database and generate the translation, if the translation
and values/id
configurations are not present or the parent entity is not valid, the entity will be generated as before. If a translation exists it will update this one, if it does not exist it will create it.
Needs review
1.0
Code