Skip to content

Multilanguage#144

Merged
budparr merged 2 commits intotheNewDynamic:masterfrom
jan-xyz:translation-links
Jan 8, 2019
Merged

Multilanguage#144
budparr merged 2 commits intotheNewDynamic:masterfrom
jan-xyz:translation-links

Conversation

@jan-xyz
Copy link

@jan-xyz jan-xyz commented Dec 9, 2018

This adds a language button into the navigation at the top. You can see it in action on my blog. I used mainly the tutorial from the Hugo docst to adjust the theme.

If you add a language section to your config it'll handle it for you.

  [languages.de]
    title = "Der Deutsche Titel"
    weight = 1
    languageName = "Deutsch"
    [[languages.de.menu.main]]
    url    = "/de/"
    name   = "Home"
    weight = 0
  [languages.en]
    title = "The English Title"
    weight = 2
    copyright = "Everything is mine"
    languageName = "English"
    [[languages.en.menu.main]]
    url    = "/en/"
    name   = "Home"
    weight = 0

I'm not sure if the navigation is the right place to put it or if you would like to see some other changes. Just let me know, and I am happy to discuss it.

@budparr
Copy link
Member

budparr commented Jan 6, 2019

This looks great, @jan-xyz and sorry I missed this through the holidays. Can you show me your repo or site so I can see what the menu looks like with it?

@budparr budparr closed this Jan 6, 2019
@budparr budparr reopened this Jan 6, 2019
@jan-xyz
Copy link
Author

jan-xyz commented Jan 7, 2019

Not a problem 🙂 We are all doing it in our free time. I hope you had a nice holiday and some vacation!

You can see the change in action at:
repo: https://github.com/jan-xyz/blog
blog: https://blog.jan-steinke.de

@budparr budparr merged commit 85d9218 into theNewDynamic:master Jan 8, 2019
@budparr
Copy link
Member

budparr commented Jan 8, 2019

Thank you, @jan-xyz I think this looks good, at lease without doing more restructuring of the nav (which I may do sometime in the near future). Thanks for bringing it up.

@jan-xyz jan-xyz deleted the translation-links branch January 8, 2019 09:06
@jan-xyz jan-xyz restored the translation-links branch January 8, 2019 09:06
@jan-xyz jan-xyz deleted the translation-links branch January 14, 2019 21:38
@jan-xyz jan-xyz mentioned this pull request Feb 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants