Hello,
I’m happy and honoured to be admitted into the Zola forum. I’m trying to use Linkita theme and default language “sv” (Swedish) and additional language “en”.
It seems to work quite well for my “profile” on the start page and the list of blog posts “hello.md” and “hello.en.md” or the about page “about.md” and “about.en.md”.
But I struggle to make the menu bilingual and in particular in populating the “globe” icon with the language options “Svenska, English”.
Does anyone have an examplel zola.toml for the linkita theme that they’d like to share, with two languages configured?
Best regards.
Leander
Hi everyone, I managed to sort it out.
For the header links:
header_menu_name = “header_links”
[extra.languages.en]
header_menu_name = “header_links_en”
[extra.menus]
header_links = [
{ url = “@/pages/archive.md”, name = “Blog se” },
{ url = “$BASE_URL/tags/”, name = “Taggar” },
{ url = “@/pages/projects/_index.md”, name = “Projekt” },
]
header_links_en = [
{ url = “@/pages/archive.md”, name = “Blog en” },
{ url = “$BASE_URL/tags/”, name = “Tags” },
{ url = “@/pages/projects/_index.md”, name = “Project” },
]
And I think this is what it took to get the language menu populated
[languages.sv]
title = “Lorems webbplats”
]
[languages.en]
title = “Lorem’s site”
]
And I needed to add the “sv” language in /themes/linkita/static/i18n/menu.json
I think that’s it. I have it working now after some trial and error.
PS. Big thanks to Salif for sharing his configuration here: