Multilingual texts

Sometimes you want to generate texts in multiple languages (let’s say English and French). You will actually have to define the texts in each output language, there’s no black nor white magic here. But you can put both texts in the same templates.

You can read util.language to see the current language thus you can write these kind of multilingual mixins:

It is a good practice for maintenance to keep both languages in the same mixins.