Hello,
I need to change the metadata description of a modular page depending on the language.
Could someone please explain how to do it?
Hello,
I need to change the metadata description of a modular page depending on the language.
Could someone please explain how to do it?
Im new here but I think you can add the language key behind the module name like default.EN.md and need to set the language in the page header.
---twig
template: default.EN
So it will search for a `default.EN.html.twig` in your templates folder.
There is also an other way with twig translation, but I did not understand it yet.
Here in the docs its better explained [Multi-Language](http://learn.getgrav.org/content/multi-language#language-based-twig-templates)
Thanks for your answer, I've tried again, now it works:
Probably looking for more complicate solutions messed up something.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1346 | 9 years ago | ||
| 2 | 933 | 9 years ago | ||
| 2 | 4060 | 9 years ago | ||
| 1 | 2945 | 9 years ago | ||
| 3 | 1117 | 9 years ago |