October ver: 3
Rainlab translate ver: 2.2.1
I don’t get how to use the language yaml files for static content with the rainlab translate plugin.
following the documentation in the theme yaml file I have to add something like:
translate:
en:
home:
description: "We provide the best services."
fr:
home:
description: "Nous offrons les meilleurs services."
but what I have to put in the page I want the translation?
I tried something like
<p class="lead">{{ home.description|_ }}</p>
but it doesn’t works.
the classic translation system with text translation works fine:
{{ 'some text to translate'|_ }}
but I would like to move all the translations in specific files