New to KendoReact? Start a free 30-day trial

Reacting to Locale Changes

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

To react to locale changes, call the provideIntlService function inside the render function of the component.

Example
View Source
Edit In Stackblitz  
Change Theme:

To react to language changes, use the provideLocalizationService function inside the render function of the component. If the component is a stateless functional component, access it directly from the context object under the kendoLocalizationService key.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?