Jekyll Multiple Languages Navigation #2660
Unanswered
blogi-kriptovalyut
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey. Who will find this issue, here is an intermediate solution:
then in the
|
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
-
Hey. I've been struggling for a week now to translate the navigation menu into several languages.
I found many examples on Google where people were able to customize the translation of the menu using the "Minimal Mistakes" theme. The articles were from 2018, maybe something has changed in the topic or in Jekyll?
How do I create a multilingual menu:
file:
_data/navigation.yml
Two languages, two subtrees with the correct URLs for either.
Then I needed to incorporate that into the
_includes/masthead.html
The standard code looks like this:
I change it to code for different languages:
By this design, it is not displayed even without the plugin "Jekyll Multiple Languages Plugin" in a clean theme "Minimal Mistakes"
I tried simpler and changed the standard code
This displays all menu items in all languages.
Please help me figure it out because I think you are the best theme developer for Jekyll!
I realize that maybe localization is beyond the scope of this topic, but I can't get any help anywhere. I would like to keep using the beautiful Minimal Mistakes theme!
Beta Was this translation helpful? Give feedback.
All reactions