-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
RouterTabs: Adds localization #5948
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The global API seems good to me. But I would also like to have a localizer API on RouterTabs. Look at DataGrid for example:
[Parameter] public DataGridLocalizers Localizers { get; set; }
Also, for undefined NameLocalizationKey
I would pass Name
as a key.
From what I understood about the
What would be the use-case here? The current solution is designed to support either the
|
For other components, we use the |
…uter-tabs-names-localization
Description
Closes #5945
The feature is complete, but the documentation still needs to be updated. I’d like to discuss the approach first.
Implementation Overview
Adding Options to
AddBlazoriseRouterTabs
The implementation introduces an option to
AddBlazoriseRouterTabs
that accepts aFunc
NamesLocalizer
:This approach works similarly to how global localization is applied to validation messages.
Using a Key Instead of a Name in the Attribute
A key can now be provided inside the attribute, enabling localized naming: