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

Multilingual Site Problem with Menu

Solved by Karmalakas View solution

Started by Michail 6 years ago · 2 replies · 1415 views
6 years ago

I have created a site for a company in grav cms using grantry 5 helium theme. I am trying to create multilanguage site following your grav documentation instructions. I have created two .md files for each page one for en language and one for gr language i.e. files end with en.md and gr.md inside each page folder. Everything works fine except the main menu. In menu everything gets translated according to language selection except "Home". Home don't translate and is displayed as "Home" in both languages.
I have a 01.home directory and inside it two files default.en.mg and default.gr.md with the following content:

YAML
default.en.md
---
title: 'Home'
---

default.gr.md
---
title: 'Αρχική'
---

However 'Αρχική' never gets displayed in when visiting site/gr only 'Home'

Any suggestions??

6 years ago

Thanks a lot solution by maria in post 7 worked like a charm.

Suggested topics

Topic Participants Replies Views Activity
Gantry · by Chris, 1 year ago
1 1029 1 year ago
Gantry · by Sam, 1 year ago
7 862 1 year ago
Gantry · by Dima, 2 years ago
2 621 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 2386 3 years ago
Gantry · by stani, 6 years ago
2 1299 3 years ago