I have a problem: using Dynamic Content with a multilingual website.
I'm sharing this experience because I've found a solution, and it works, but I'd like to know if there are plans for greater integration and functionality for multilingual projects using collections in the future.
I have some real estate listings. My goal was to create listings where the dynamic fields are sometimes unique (for example, the image gallery), while in other cases it's necessary to have a field for each language (for example, the description).
Unfortunately, the /slug page routing isn't working well at the moment, because if I create a collection, I can only create one "index" page and one "slug" page.
The other problem was the SEF URLs.
The only way to do this was to use a RegularLabs project (Conditional Content), which allows fields to be displayed based on a condition—in my case, the browser language.
The logic is to use:
{show languages="en-gb"}
Dynamic content in English
{/show}
{show languages="de-de"}
Dynamic content in German
{/show}
It works well, especially because the content that isn't relevant to the language isn't even in the page's HTML code, and therefore doesn't compromise SEO.
Has anyone had similar experiences and approached the problem differently?
Those who tell me to create a collection for each language should refrain, because it's a basic approach that requires repeating fields that can be unique for each language (see galleries, descriptions, etc.).
Thanks