Blazor: localisation of DeleteConfirmation

1 Answer 90 Views
Designs, skins, themes Miscellaneous
Gerd
Top achievements
Rank 1
Gerd asked on 25 Feb 2022, 07:48 AM

Hi,

I am using localisation as described in 

https://github.com/telerik/blazor-ui/tree/master/common/localization/ServerLocalizationResx

Bu when using this approach the dialog isn't rendered as expected:

Headline contains only the host url, content becomes empty and the button without caption.

The captions of the buttons, I could solve when I introduced "Dialog_Ok" and "Dialog_Cancel" in resx. But the other texts I couldn't fix.

Any help appreciated.

From Germany

Gerd

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 01 Mar 2022, 02:26 PM

Hi Gerd,

You can create custom keys in the TelerikMessages.resx files that will be responsible for the Dialog title and content (for example, Dialog_MyTitle, Dialog_MyContent). There are no default keys as the title and content are coming from the custom C# logic of the application. Every scenario is different.

As a final step, inject the Localizer (like in the sample) and define the custom keys.

I hope you find the above information helpful. If there is something else we can help with, I'm at your disposal.

Thank you.

Regards,
Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Designs, skins, themes Miscellaneous
Asked by
Gerd
Top achievements
Rank 1
Answers by
Hristian Stefanov
Telerik team
Share this question
or