Localization for UI5 Web Components
npm install @ui5/webcomponents-localization
Provides date/time and CLDR functionality for the purposes of building UI5 Web Components.
The assets, provided by this package, are CLDR data:
import "@ui5/webcomponents-localization/dist/Assets.js";
Note: These assets are already imported by the UI5 Web Components packages that need them.
| Feature Import | Description |
|----------------------------------------------------------------------|---------------------------|
| @ui5/webcomponents-localization/dist/features/calendar/Buddhist.js | Buddhist calendar support |
| @ui5/webcomponents-localization/dist/features/calendar/Islamic.js | Islamic calendar support |
| @ui5/webcomponents-localization/dist/features/calendar/Japanese.js | Japanese calendar support |
| @ui5/webcomponents-localization/dist/features/calendar/Persian.js | Persian calendar support |
``js`
import "@ui5/webcomponents-localization/dist/features/calendar/Buddhist.js";
import "@ui5/webcomponents-localization/dist/features/calendar/Islamic.js";
import "@ui5/webcomponents-localization/dist/features/calendar/Japanese.js";
import "@ui5/webcomponents-localization/dist/features/calendar/Persian.js";
The ui5-date-picker and ui5-datetime-picker components supports Gregorian Calendar by default.
In order to be able to use Buddhist, Islamic, Japanese, or Persian calendar with these components
(by setting its primaryCalendarType property), you must import one or more of the modules above.