diff --git a/packages/main/src/Calendar.js b/packages/main/src/Calendar.js index 58f32dbb6fdf..17d3dbe4ec56 100644 --- a/packages/main/src/Calendar.js +++ b/packages/main/src/Calendar.js @@ -179,6 +179,30 @@ const metadata = { * *
* +*

Calendar types

+ * The component supports several calendar types - Gregorian, Buddhist, Islamic, Japanese and Persian. + * By default the Gregorian Calendar is used. In order to use the Buddhist, Islamic, Japanese or Persian calendar, + * you need to set the primaryCalendarType property and import one or more of the following modules: + *

+ * + * 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"; + *

+ * + * Or, you can use the global configuration and set the calendarType key: + *
+ *
<script data-id="sap-ui-config" type="application/json">
+ * {
+ *	"calendarType": "Japanese"
+ * }
+ * </script>
+ *
+ *
  * 

ES6 Module Import

* * import "@ui5/webcomponents/dist/Calendar"; diff --git a/packages/main/src/DatePicker.js b/packages/main/src/DatePicker.js index 3d4dc8a3b474..111e96704af2 100644 --- a/packages/main/src/DatePicker.js +++ b/packages/main/src/DatePicker.js @@ -298,6 +298,29 @@ const metadata = { *
  • [SHIFT] + [CTRL] + [PAGEUP] - Increments the corresponding year by one
  • * * + *

    Calendar types

    + * The component supports several calendar types - Gregorian, Buddhist, Islamic, Japanese and Persian. + * By default the Gregorian Calendar is used. In order to use the Buddhist, Islamic, Japanese or Persian calendar, + * you need to set the primaryCalendarType property and import one or more of the following modules: + *

    + * + * 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"; + *

    + * + * Or, you can use the global configuration and set the calendarType key: + *
    + *
    <script data-id="sap-ui-config" type="application/json">
    + * {
    + *	"calendarType": "Japanese"
    + * }
    + * </script>
    + *
      * 

    ES6 Module Import

    * * import "@ui5/webcomponents/dist/DatePicker";