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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Setting Grav to display frontend in Spanish

Started by Luis Rodriguez-Galvan 6 years ago · 5 replies · 605 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

@lerg57, Have you tried the docs on Multi-Language ?

And do you mean Admin, or the output of bare Grav?

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

Sorry to delay in answering. I do this on weekends.
I would like to appear the dates in latin or spanish format dd/mm/yy in the output

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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago