I started using Timber with Wordpress and everything was fine until I got to do text translations. I use WPML but apparently it does not work with Timber.
To translate a text with WPML I usually use the following:
_e('Texto', 'theme');
Now with Timber I've tried this:
{{ _e('Read more', 'theme') }}
{{ _e('string', 'theme') }}
{{ function("icl_translate", 'theme', 'string_identifier', 'string) }}
{{ dump(ICL_LANGUAGE_CODE) }} // NULL
But it seems that none of this works. Can anybody help me?
Thanks !!!