You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by MBNSoftware January 19, 2025
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
The text was updated successfully, but these errors were encountered:
Discussed in #5938
Originally posted by MBNSoftware January 19, 2025
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
The text was updated successfully, but these errors were encountered: