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

registerForIntl with functional component

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Venelin
Top achievements
Rank 1
Venelin asked on 03 Oct 2019, 01:11 PM

Hi there,

  I want to use registerForIntl() with a functional compoent - React.SFC . How can I do that? registerForIntl expecs React.Component? How can I use intl functions in a React.SFC?

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Oct 2019, 06:48 AM

Hello, Venelin,

We made a method that will do the same for functional components. It is called "useInternationalization".

Currently, it is still not documented as we made it for internal use, but it is available for import.

If there is any issue after using it, please let me know.

Also, useLocalization is the alternative to registerForLocalization.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
James
Top achievements
Rank 1
answered on 19 Oct 2020, 10:34 AM
Any update when you will document this? It's a bit frustrating trying to guess how this might work
0
Stefan
Telerik team
answered on 19 Oct 2020, 11:09 AM

Hello, James,

Currently, we have its usage only shown in the Scheduler demo:

https://www.telerik.com/kendo-react-ui/components/scheduler/accessibility/#adding-accessible-summary

We are planning to add it the Globalization article in the future as well, as we agree that it is hard to guess how to use it and what the method expects:

https://www.telerik.com/kendo-react-ui/components/intl/

Regards,
Stefan
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
General Discussions
Asked by
Venelin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
James
Top achievements
Rank 1
Share this question
or