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
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
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:
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/.