Language switch does not appear #2312
Unanswered
JuliusStoll
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you enabled the language chooser in
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Situation:
So, I am trying to set up my very basic academic page in two languages.
Therefore, I have followed all guidelines so my files read the following:
So the language section in the Website/config/_default/config.yaml looks like this:
`defaultContentLanguage: en
hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true
`
My config/_default/languages.yaml file reads like this:
`Default language
en:
languageCode: en-us
contentDir: content/en
de:
languageCode: de
contentDir: content/de
title: Website Title in German
params:
description: Website Description in German`
I've added a i18n folder with the standard de.yaml language file.
In addition to the Website/config/_default/menus.yaml file I have added a Website/config/_default/menus.de.yaml file (on the wowchemy instructions, it talks about menu.toml files? Is that a problem?)
Regarding content, I have put the content in two language directories, Website/content/de/ and Website/content/en/ where all subsequent folders have the same structure/name and only differ in their content language.
Problem: My website still only displays the english default version, there is no button to switch versions to the German one. What am I doing wrong?
Thank you guys for your help! So far all went perfectly well, thus I am curious where my mistake is at.
Best,
Julius
Beta Was this translation helpful? Give feedback.
All reactions