Any ideas how to do that? Something like:
--- yaml
title:
en: English title
fr: French title
TXT
?
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!
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1359 | 9 years ago | ||
| 2 | 936 | 9 years ago | ||
| 2 | 4066 | 9 years ago | ||
| 1 | 2955 | 9 years ago | ||
| 3 | 1121 | 9 years ago |