Modifying navigation menu paths causes translation loss

When I change the relative path for the My Posts sidebar item (from /my/activity to /my/messages), the My Post menu item loses its translation.

I tried to play with the /admin/customize/site_texts/js.sidebar.sections.community.links.my_posts.content?locale=[mylocale] parameter, thinking that modifying it would make it translated again just like in this solution on another topic, but it doesn’t.

Only when I revert the path back to the original one, is it translated again. So basically I cannot customize the path without losing the translation.

I am not sure this is a bug. When you add a custom link, you cannot add translations for it.
Editing one of the default links is like adding a custom link and removing the default link. So, for me, it makes sense that everyone sees the text from the name field.

3 Likes

You are answering my every post! :hugs:

You got me thinking that I simply could add a new link and remove the My Posts one. But, I don’t feel comfortable removing the My Posts one: what would happen to the relationship it has with the js.sidebar.sections.community.links.my_posts.content parameter? What if I want it back, would creating it again exactly as it was be sufficient to re-establish this relationship?

So I would say it’s at least a UX problem insofar as the UI is misleading…? Also that would be great to make custom entries translatable, that would make sense if Discourse aims at making possible for every user to have its interface in their preferred language. But I might be asking too much.