Problem
As I've seen in the Timber documentation it is possible to add multilanguage support like this:
// Set language to French
putenv('LC_ALL=fr_FR');
setlocale(LC_ALL, 'fr_FR');
// Specify the location of the translation tables
bindtextdomain('myAppPhp', 'includes/locale');
bind_textdomain_codeset('myAppPhp', 'UTF-8');
// Choose domain
textdomain('myAppPhp');
{% trans "Hello World!" %}
{% trans string_var %}
{% trans %}
Hello World!
{% endtrans %}
The problem is, like this I have static site - which will be translated to French, but I'm not able to add multilanguage content to it from the wp-backend. So I'm sure that there is a better way to realize multilanguage support with a WordPress Theme written with Timber.
Question
I'd like to know what is the best and most reliable way to build a WordPress Theme with Timber and realizing multilanguage support for it.
Are there any best practices?