I can’t find any examples anywhere, so I thought here would be the place to ask.
I have a Section on my site called “Music”, where each bit of content is an album or a release. I also have my site translated into Portuguese. My URL’s typically end up like:
baseurl/en/music/album-name-in-english
baseurl/pt/music/album-name-in-portuguese
I was wondering if it was supported to translate the section name, in this case “music”? In Portuguese this would be “musica”. So I’d like to end up with:
baseurl/en/music/album-name-in-english
baseurl/pt/musica/album-name-in-portuguese
I typically have a content folder that looks like this, with each bit of content sharing a “translationKey”.
content/music/album-name-in-english.md
content/music/album-name-in-english.pt.md
I’ve seen examples of people translating “About” pages and changing the slug, but they don’t tend to sit inside Sections.
Thanks for any help!
I’ve added a translationKey = “music” to _index.md inside “music” and “musica”. I’ve also ensured the translationKey inside the actual album content is also the same (ie, “album-name”). This appears to work, but perhaps I’m missing a downside to this?