Skip to content

Commit 2b2cd6e

Browse files
authored
refactor(material/datepicker): deprecate unused i18n strings (#25791)
Remove two unused i18n strings from datepicker. Remove `startDateLabel` and `endDateLabel`. DEPRECATED: * startDateLabel is deprecated because it is not used * endDateLabel is deprecated because it is not used
1 parent a310fef commit 2b2cd6e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/material/datepicker/datepicker-intl.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,18 @@ export class MatDatepickerIntl {
5151
/** A label for the 'switch to year view' button (used by screen readers). */
5252
switchToMultiYearViewLabel = 'Choose month and year';
5353

54-
/** A label for the first date of a range of dates (used by screen readers). */
54+
/**
55+
* A label for the first date of a range of dates (used by screen readers).
56+
* @deprecated Provide your own internationalization string.
57+
* @breaking-change 17.0.0
58+
*/
5559
startDateLabel = 'Start date';
5660

57-
/** A label for the last date of a range of dates (used by screen readers). */
61+
/**
62+
* A label for the last date of a range of dates (used by screen readers).
63+
* @deprecated Provide your own internationalization string.
64+
* @breaking-change 17.0.0
65+
*/
5866
endDateLabel = 'End date';
5967

6068
/** Formats a range of years (used for visuals). */

tools/public_api_guard/material/datepicker.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ export class MatDatepickerIntl {
471471
calendarLabel: string;
472472
readonly changes: Subject<void>;
473473
closeCalendarLabel: string;
474+
// @deprecated
474475
endDateLabel: string;
475476
formatYearRange(start: string, end: string): string;
476477
formatYearRangeLabel(start: string, end: string): string;
@@ -481,6 +482,7 @@ export class MatDatepickerIntl {
481482
prevMonthLabel: string;
482483
prevMultiYearLabel: string;
483484
prevYearLabel: string;
485+
// @deprecated
484486
startDateLabel: string;
485487
switchToMonthViewLabel: string;
486488
switchToMultiYearViewLabel: string;

0 commit comments

Comments
 (0)