We want to use the Blazor lib in one of our projects. So I checked out the data grid and I like the component 🙂
But I ran into a localization issue:
I couldn’t figured it out how to localize the header part of the grid e.g “Customize columns” or all filter related expressions “equal”, “does not contain” etc.
I set the messages property of the grid. The pager part works fine.
….
{
“de”,
new Dictionary<string, string>()
{
…
{ “customize”, “translated text 1” }, <= doesn’t work
{ “doesNotContain”, “translated text 2” } <= doesn’t work
{ “pagerNavigateToLabel”, “translated text 3” }, <= this works
Is there an issue or missed I something?
The only way I can do it, is to manipulate the JS at the moment
messages: {
value: {
en: {
addFilter: “+ Add filter”, <= Change text here
Element selection in _localizeHeader() in the JS looks good, but I guess e.localize(“customize”) etc. does not receive the locale “de” Dictionary?