Any ideas how to do that? Something like:
ā yaml
title:
en: English title
fr: French title
?
Any ideas how to do that? Something like:
ā yaml
title:
en: English title
fr: French title
?
Per the multi-language docs the better option is to put your translations into the user/languages/en.yaml
and user/languages/fr.yaml
:
SITE_TITLE: English Title
then you can simply use the translate filter |t
in Twig:
<title>{{ 'SITE_TITLE'|t }}</title>
Thank you very much!