Gizra / drupal-starter

Drupal 10 Starter with best practices
76 stars 40 forks source link

Ensure all Paragraph types are translatable [3h] #738

Open amitaibu opened 1 month ago

amitaibu commented 1 month ago

https://www.drupal.org/docs/contributed-modules/paragraphs/multilingual-paragraphs-configuration#s-explanation

All paragraph types must be marked as translatable, including container paragraph types that only have an untranslatable paragraph field for nested paragraphs. Otherwise it is not possible to translate nested paragraphs in these fields.

Todo

  1. Ensure all paragraph types are translatable
  2. Let's add a hook that, upon creating a new Paragraph type, forces it to be translatable.
dipakmdhrm commented 4 days ago

Testing instructions

Make all paragraphs types translatable

Navigate to /config/regional/content-language. All paragraphs (except search) should already be translatable.

Let's add a hook that, upon creating a new Paragraph type, forces it to be translatable.

  1. Create a new paragraph type and add the following fields to it: 1.1. Text field 1.2. Term reference field 1.3. Content reference field 1.4. Paragraph reference field
  2. Navigate to /config/regional/content-language. 2.1. The checkbox to make this new paragraph type should already be checked. 2.2. The following should be unchecked for this new paragraph type: 2.2.1. Checkbox to make 'Published' translatable 2.2.2. Checkbox to make 'Authored on' translatable 2.2.3. Checkbox to make paragraph reference field translatable. 2.3. The following should be checked for this new paragraph type: 2.3.1. Checkbox to make the text field translatable. 2.3.2. Checkbox to make the term reference field translatable. 2.3.3. Checkbox to make the content reference field translatable.