Globalization

Globalization is the combination of internalization and localization. You can adapt the component to
various languages by parsing and formatting the date or
number internationalization, and also add culture
specific customization and translation to the text localization.

By default, TimePicker time format and meridian names are specific to the American English culture.
It utilizes the
Essential JavaScript 2 Internationalization
package to parse and format the date object based on the culture by using the official UNICODE CLDR
JSON data. It provides the loadCldr method to load culture specific CLDR JSON data.

To go with the different culture other than English, follow the below steps.

Install the CLDR-Data package by using the below command (it installs the CLDR JSON data). To
know more about CLDR-Data refer the
CLDR-Data link.

npm install cldr-data --save

Once the package installed, you can find the culture
specific JSON data under the location \node_modules\cldr-data.

Now use the
loadCldr
method
to load the culture specific CLDR JSON data.

In ASP.NET MVC refer the culture files directly from \node_modules\cldr-data location. But in ASP.NET Core, the static file contents are should present under wwwroot folder. For this, manually copy the CLDR-Data from the node_modules folder and place inside the wwwroot folder and refer from the \wwwroot\cldr-data location as like the below code examples.