registerForIntl with functional component

4 posts, 0 answers
  1. Venelin
    Venelin avatar
    6 posts
    Member since:
    Jun 2019

    Posted 03 Oct 2019 Link to this post

    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?

     

  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 04 Oct 2019 Link to this post

    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
  3. James
    James avatar
    2 posts
    Member since:
    Jun 2016

    Posted 19 Oct 2020 in reply to Stefan Link to this post

    Any update when you will document this? It's a bit frustrating trying to guess how this might work
  4. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 19 Oct 2020 Link to this post

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

Back to Top