This is a migrated thread and some comments may be shown as answers.

Blazor Editor Component Localization

1 Answer 583 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Anna
Top achievements
Rank 1
Veteran
Anna asked on 26 Feb 2021, 08:43 AM
I want to use Editor component, but I need change language and I have no idea how to do it
Found this, but it also doesn't help me https://demos.telerik.com/blazor-ui/editor/localization
I'm using Blazor WebAssembly

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Feb 2021, 09:00 AM

Hi Anna,

I recommend you first review this article to see how localization works for our components: https://docs.telerik.com/blazor-ui/globalization/localization.

Then, go to the "demos" folder of your local Telerik UI for Blazor installation and there you will see the solution with all our online demos - this will let you inspect the source code. The localization is done through a service implemented in the demo app, and switching the current thread culture (on which the localization depends in this example) is done in the standard Blazor way. You can also find sample .resx files in the Resources folder - Messages.resx contains all the keys for our components.

Furthermore, you can take a look at the following sample project for localization of Telerik components in WebAssembly: https://github.com/telerik/blazor-ui/tree/master/common/localization/ClientLocalizationResx. While it does not have an Editor component in it, it showcases the concept and just adding an editor + updated localization resource files will let you have a localized editor.

Regards,
Marin Bratanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
Anna
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or