Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Setting Grav to display frontend in Spanish

Started by Luis Rodriguez-Galvan 6 years ago · 5 replies · 710 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 Mathieu Lecouturier, 24 hours ago
0 53 24 hours ago
Plugins · by Slebeig, 4 weeks ago
1 272 4 weeks ago
Plugins · by Rene, 2 months ago
2 430 2 months ago
Plugins · by Xavier, 2 months ago
2 344 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1567 2 months ago