Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Setting Grav to display frontend in Spanish

Started by Luis Rodriguez-Galvan 6 years ago · 5 replies · 779 views
6 years ago

Please advise what to do in order to set GRAV to display the frontend languaje in Spanish.
Thanks

Luis R

6 years ago

Yes. I read it but I was not able to implement it. Maybe it is because I do not have to much expertise. I only would like to appear the front end in spanish along with the dates as in wordpress.
Reading the manual it looks like the theme has to be set to the wanted languaje. I have the default theme.
I'll appreciate letting me know if there is a theme set for spanish
Thanks
Luis R

6 years ago

The default theme Quark comes with a Spanish translation, just look at the language.yaml file.

Please explain what you did and which step you couldn't do or failed at.

6 years ago

Hi.
I assume you mean the dates that appear, for example, on blog pages, etc.
Have you visited the twig docs about this?. You have to use the localizeddate extension from twig.
https://twig-extensions.readthedocs.io/en/latest/intl.html
For example, you could use this:
{{ page.date|localizeddate('medium', 'none', 'es') }}, in your twig template.

last edited 09/05/20 by Pedro M

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 5 days ago
0 117 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 394 1 month ago
Plugins · by Slebeig, 2 months ago
1 509 2 months ago
Plugins · by Rene, 3 months ago
2 702 3 months ago