openeuropa / oe_whitelabel

European Union Public License 1.2
2 stars 4 forks source link

Translation issue in videos added to Gallery and Media paragraphs #322

Open piotrsmykaj opened 1 month ago

piotrsmykaj commented 1 month ago

When adding a media remote_video in Gallery or Media paragraph and when the video is translated into several languages Then the translated video has to be shown to the user in the respective language. But, it only shows the video in English even in other translation pages.

To reproduce the issue it's needed to create a node in a specific order:

Make sure you have a media remote_video in EN and X translation Add Page in EN without Gallery Add X translation to the Page Add Gallery to the EN Page View the Page in X translation and the played Video will be in English, but it should be in X translation In this case, both paragraph records (for both translations) in paragraph_item_field_data are created with langcode EN.

when adding a Page in EN with Gallery, then paragraph records are created with EN and X langcode values and the problem doesn't happen.