UNPKG

480 BJavaScriptView Raw
1import { enUS } from "../lib/locales.js";
2/**
3 * Format the month number for the dropdown option label.
4 *
5 * @defaultValue The localized month name
6 * @group Formatters
7 * @see https://daypicker.dev/docs/translation#custom-formatters
8 */
9export function formatMonthDropdown(
10/** The month number to format. */
11monthNumber,
12/** The locale to use for formatting. */
13locale = enUS) {
14 return locale.localize?.month(monthNumber);
15}
16//# sourceMappingURL=formatMonthDropdown.js.map
\No newline at end of file