2

I know that Paragraph field itself are not translatable for some reasons. I wanted to know if we could still have separate number of paragraph items between two translations of a node.

Example:

  • Node 1 FR

    • Paragraph 1
    • Paragraph 2
  • Node 1 EN

    • Paragraph 1
    • Paragraph 2
    • Paragraph 3

I found no clear explanations on that.

2

Not really in an easy way. We're working on an alternative approach to making the field translatable in the experimental paragraphs collection project: https://www.drupal.org/node/2846682.

Basically, this adds a setting to optionally control visibility of a paragraph in another language. This is a useful approach for use cases where differences between language are the exception and not the rule.

You can also build something similar yourself with a standard list field or an entity reference field to languages and then implement something in preprocess, twig or entity access to hide the paragraphs based on that.

But the only way to have completely different paragraph structures is to have the field translatable, and that's still a work in progress.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.