UNPKG

445 BJavaScriptView Raw
1/**
2 * Format the years for the dropdown option label.
3 *
4 * @defaultValue `year.toString()`
5 * @group Formatters
6 * @see https://daypicker.dev/docs/translation#custom-formatters
7 */
8export function formatYearDropdown(year) {
9 return year.toString();
10}
11/**
12 * @private
13 * @deprecated Use `formatYearDropdown` instead.
14 * @group Formatters
15 */
16export const formatYearCaption = formatYearDropdown;
17//# sourceMappingURL=formatYearDropdown.js.map
\No newline at end of file