Reacting to Locale Changes

The Internationalization package enables you to react to changes in the locale data or language.

KendoReact Server Components are in an experimental phase and are not intended for production use. APIs may change without introducing a breaking change. Please refer to the Umbrella GitHub issue for general feedback, bug reports, and more information.

To handle locale changes, follow these steps:

  • Create a server action in a server component and pass it down to the client component as a prop. Do not forget to place use server on top of the method.
  • In the client component, bind the passed server action to an event trigger (onClick / onChange), and invoke the passed server action with the changed locale.

The following demo demonstrates how to react to locale changes.

Example
View Source
Change Theme:

Additional Resources

In this article

Not finding the help you need?