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

Simple multi-language website with lang attribute selector

Started by Marcus Rommedahl 6 years ago · 1 replies · 566 views
6 years ago

Hi, I am running a simple blog using Grav inspired by some of the [beep] websites. The basic layout is in English but I also want to write blog-posts in my native language and then have a correctly set language attributes, but I do not want to set up a fully fledged multi-language website.

My idea is to when I write a website there is a button or selector where I choose the language of the page content, and that this then sets the correct language in the <html lang="en"> part of the template. Alternatively that it is set from the occurrence of a tag.

I would really appreciate help on what config file to make these changes in.

Cheers!

last edited 05/15/20 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by blu3prince, 4 days ago
1 85 19 hours ago
Support · by complanar, 1 week ago
6 168 2 days ago
Support · by Rick Beebe, 1 week ago
2 124 4 days ago
Support · by alex, 6 days ago
2 109 5 days ago
Support · by Marcel, 2 weeks ago
1 159 5 days ago