Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localization for RouterTabs #5945

Open
stsrki opened this issue Jan 21, 2025 · 0 comments · May be fixed by #5948
Open

Add localization for RouterTabs #5945

stsrki opened this issue Jan 21, 2025 · 0 comments · May be fixed by #5948
Assignees
Labels
Type: Feature ⚙ Request or idea for a new feature.
Milestone

Comments

@stsrki
Copy link
Collaborator

stsrki commented Jan 21, 2025

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 :

image

Same with english locale :

image

When I try to use the same technique with router tabs, Visual Studio complains with no static field or with double declaration :(

image

image

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

@stsrki stsrki added the Type: Feature ⚙ Request or idea for a new feature. label Jan 21, 2025
@stsrki stsrki added this to the 2.0 milestone Jan 21, 2025
@github-project-automation github-project-automation bot moved this to No Status in Development Jan 21, 2025
@tesar-tech tesar-tech linked a pull request Jan 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
Status: No Status
Development

Successfully merging a pull request may close this issue.

2 participants