Translation problem with timber and WPML (WordPress, different language per domain)

We are facing 2 problems with timber and WPML, we enabled the translation per domain (3 domains).

We have the default French version, a Belgian version and a Swiss version. (website.fr, website.be and website.ch).

The first one is that our translations are not taken into account.

We used this syntax to recognize our translatable fields:

{{ __('string') }}

The strings seem to be recognized we can access them in the backoffice and translate them for each language, the problem is that even after having added the translations, they do not appear on the website (for the concerned versions, they stay in french).

The second problem is that the URLs are not taken into account, when we are on the Belgian version for example, the urls are still the default urls and not the urls .be or .ch.

Is there anybody who has already experienced this problem or a similar problem and who could help me?

Leave a Comment