File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
packages/vaadin-date-picker/src Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,15 @@ interface DatePickerMixin {
7575 /**
7676 * The object used to localize this component.
7777 * To change the default localization, replace the entire
78- * _i18n_ object or just the property you want to modify.
78+ * `i18n` object with a custom one.
79+ *
80+ * To update individual properties, extend the existing i18n object like so:
81+ * ```
82+ * datePicker.i18n = { ...datePicker.i18n, {
83+ * formatDate: date => { ... },
84+ * parseDate: value => { ... },
85+ * }};
86+ * ```
7987 *
8088 * The object has the following JSON structure and default values:
8189 *
Original file line number Diff line number Diff line change @@ -129,7 +129,15 @@ export const DatePickerMixin = (subclass) =>
129129 /**
130130 * The object used to localize this component.
131131 * To change the default localization, replace the entire
132- * _i18n_ object or just the property you want to modify.
132+ * `i18n` object with a custom one.
133+ *
134+ * To update individual properties, extend the existing i18n object like so:
135+ * ```
136+ * datePicker.i18n = { ...datePicker.i18n, {
137+ * formatDate: date => { ... },
138+ * parseDate: value => { ... },
139+ * }};
140+ * ```
133141 *
134142 * The object has the following JSON structure and default values:
135143 *
You can’t perform that action at this time.
0 commit comments