Localization support in React Components

Localization (L10N) adapts the user-facing text in Syncfusion® React components to a specific language or region. It replaces built-in labels, tooltips, messages, placeholders, and other UI strings with translations so users can interact with your app in their preferred language.

Getting started with localization

To enable localization in your Syncfusion® React application, follow these steps:

Installing Syncfusion® React package

To use the React Locale data, install the @syncfusion/react-locale package:

Import and load locale data

Import the required culture files and load them using the L10n.load method from @syncfusion/react-base.

Apply locale using Provider

To apply localization, wrap your React components with the Provider component. Then, set the desired language by passing the appropriate culture code to the locale prop. This ensures that all child components display text and UI elements in the selected language.

This sample demonstrates rendering the Grid component in French culture.

Loading...

Dynamic Locale Switching

This demo shows how to dynamically switch the language of Syncfusion® React components at runtime. Update the locale prop in the Provider to the selected culture, and the UI will reflect the change instantly.

Loading...