How to determine language with twig and wmpl
I used this method to get a two letter language code: in index.php
$context['lang'] = strtolower( substr( get_locale(), 0, 2 ) );
then in the template.twig I could access lang like this:
<!--language: {{lang}}-->
Of course, after I did this, I found out you could also use a build in constant, like described here: https://github.com/timber/timber/wiki/TimberSite
{{site.language}}
will give you the same as bloginfo('language') (this I did not test).