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

Simple multi-language website with lang attribute selector

Started by Marcus Rommedahl 6 years ago · 1 replies · 459 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 Water Science, 3 weeks ago
11 170 7 hours ago
Support · by Duc , 22 hours ago
1 44 22 hours ago
Support · by Thomas, 1 week ago
3 116 1 day ago
Support · by Anna, 4 days ago
2 109 2 days ago
Support · by Justin Young, 2 days ago
1 89 2 days ago