How to translate router tabs names ? #5938
Unanswered
MBNSoftware
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I don't think there is a workaround, considering that we use |
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
-
Hello,
I'm using router tabs in my app and it's working fine. No point here :)
However, now that I have to make this app multi-languages, I have a problem with such tabs' names as I don't see any way to select a translated text depending on the culture.
For all other texts, I'm using IStringLocalizer and everything works as expected. But since router tabs names are "hardcoded", they are obviously not translated.
Example with french navigator :
Same with english locale :
When I try to use the same technique with router tabs, Visual Studio complains with no static field or with double declaration :(
Does anyone have an idea on how I could proceed ?
"Name" is an attribute and not a property or parameter, so I'm kind of lost, here.
Regards,
Christophe
Beta Was this translation helpful? Give feedback.
All reactions