I’m looking on how to make sections and tags permalinks multilingual. I’ve been looking and experimenting a lot since yesterday, but haven’t found any clear answer or solution. Maybe someone here knows it?
Let me change the formulation: I have a multilingual project, but I did not find how to change the sections part of the URLs depending on the language. Does it sound better?
This seems a pretty common use case, and was requested several times in the issues. “About” is only valid in English. “Categories” would be “Kategorien” in German. Yet, in all those cases, when we are talking about a section or taxonomy, the documentation isn’t clear about how to make the URL reflect those translations.
Sure. Also I changed the topic title to clarify the issue.
Personally I had no need for this sort of configuration in my multilingual projects, so I cannot offer any insights.
Perhaps others can help.
But also note that if this permalink configuration is of paramount importance you can always set the url of a content file and section manually through front matter. Obviously this is less than ideal for a bigger project but for a smaller one, you just might be able to get away with it.
Yes, I thought of it. I regularly write new pages on the site, so I fear this will grow impossible to maintain, as this must be applied to each and every single (non default language) page. I also fear this defeats the purpose of configuring permalinks in the config and slugs in the front matter.
This is precisely what I’ve been attempting but I used the configuration directory rather than a single file, and used permalinks.en.yml and permalinks.fr.yml. It works for menus and params, but, for an unexplained reason, only permalinks.yml is taken into account, not its variants.
So, I moved the permalinks section back into languages.yml and everything works as expected.
Thank you for your help and finding out the the other post.