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

Menu - Localization

2 Answers 113 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 31 Mar 2021, 06:16 AM

We have to used translated menu text from a resource bundle. For the localization we inject the IHtmlLocalizer in our Razor-Pages.

Following code doesn't work.

                                <kendo-menu name="customermenu">
                                    <items>
                                        <menu-item text='@localizer_Label["Lable_MyTeam"]'></menu-item>
                                    </items>
                                </kendo-menu>

 

How can I localize my menu text?

Many thanks for your efforts,

Christian

2 Answers, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 02 Apr 2021, 03:09 PM

Hi Christian,

Could you please confirm if the needed text is rendered in case you are using the Localizer in a standard HTML element? Could you try to use the Localizer as in the example below and test the behavior again? 

@Localizer["Lable_MyTeam"].Value 

In case the issue continues to persist I would like to ask you to prepare an isolated runnable sample where it is replicated and send it back to us. This way we could investigate locally and provide further assistance. 

Looking forward to your reply.

Regards,
Neli
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/.

0
Christian
Top achievements
Rank 1
answered on 05 Apr 2021, 10:15 AM

Hi Neli,

thanks for your suggestion. It works.

Christian

Tags
Menu
Asked by
Christian
Top achievements
Rank 1
Answers by
Neli
Telerik team
Christian
Top achievements
Rank 1
Share this question
or