You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a collection/single type has a dynamic zone, and a component inside that zone has a relation to another collection type/entity, this relation is reset when using "translate from another locale" inside the content manager and saving.
To Reproduce
Steps to reproduce the behavior:
In the content-type builder, Create a collection type called "Type A"
Create a component called "Block", with a field relation to "Type A"
Create another collection type called "Type B" with a dynamic zone, where you can add the "Block" component.
In settings, under internationalization, add a second locale if there isn't one
In the content manager, create an instance of "Type A", translate this instance to another locale.
Create an instance of Type B, add a "Block" component to its dynamic zone and set the relation to the instance of "Type A"
Open the new instance of Type B in the second locale, then press "Translate from another locale" and select the first locale.
Before saving, look at the component inside the dynamic zone, it should show a relation to the translated instance of "Type A".
Save, leave the translated instance and return, look at the component inside the dynamic zone again. The relation is gone.
Expected behavior
When pressing save after selecting "translate from another locale", relations in components in dynamic zones should not be lost.
Screenshots
N/A
System (please complete the following information):
Additional context
It looks as if the relation is still there after translating, but it isn't kept when saving. The problem only occurs when translating in the content manager, not when batch translating.
The text was updated successfully, but these errors were encountered:
when you retranslate a page, relations in a dynamic zone are still visible in the UI, and they are properly included in the translate request http response
it breaks when you save changes. Each relation in dynamic zone has following set in the save request payload:
you don't see it break on UI immediately. You get save request response, you still see the relations on the UI, you think everything is fine, but then when you refresh, you see that the relations are gone...
if you now retranslate (after relations were removed and are now empty), and then save again, they are re-added. This time the save request payload has
@gaspop Thank you first of all for opening this issue and sorry for the long delay in answering.
I cannot reproduce this issue with the latest version of strapi-plugin-translate 1.2.6 anymore, can you please check if you still experience this issue?
And if yes, can you please share minimal content-types and components where you experience this issue?
@bkrajewski94 I am also unable to reproduce your retranslation issue. Can you please share minimal content-types and components where you experience this issue as well?
Describe the bug
If a collection/single type has a dynamic zone, and a component inside that zone has a relation to another collection type/entity, this relation is reset when using "translate from another locale" inside the content manager and saving.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When pressing save after selecting "translate from another locale", relations in components in dynamic zones should not be lost.
Screenshots
N/A
System (please complete the following information):
Plugin config
Please add your plugin config here, e.g.
Additional context
It looks as if the relation is still there after translating, but it isn't kept when saving. The problem only occurs when translating in the content manager, not when batch translating.
The text was updated successfully, but these errors were encountered: