Wrong paragraph translations edited if content language does not match currently displayed node language

Created on 30 May 2022, about 2 years ago
Updated 29 March 2023, about 1 year ago

Problem/Motivation

It is possible to use url language detection for the content but the content being displayed might not have that language in which case the default translation is used. If we now use frontend_editing that leverages paragraphs_edit then paragraphs_edit will translate the paragraph instead of loading its default translation.

Steps to reproduce

1. Install paragraphs_edit with frontend_editing.
2. Configure content language negotiation based on url
3. Visit untranslated english node while changing the page language to e.g. german.
4. Using frontend editing edit one of the paragraphs.
5. Observe no change in its default translation, but instead a new translation of the paragraph only has been created.

Proposed resolution

Use the entity repository to retrieve the language for the entity and do not translate as paragraphs will be translated together with the main node on the translation page. If there is a desire for translating paragraphs in advance a translation form should be introduced similar to how core is doing this.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany hchonov πŸ‡ͺπŸ‡ΊπŸ‡©πŸ‡ͺπŸ‡§πŸ‡¬

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024