UNPKG

569 BJavaScriptView Raw
1import { dateLib as defaultDateLib } from "../lib/index.js";
2/**
3 * Format the caption of the month.
4 *
5 * @defaultValue `LLLL y` (e.g. "November 2022")
6 * @group Formatters
7 * @see https://daypicker.dev/docs/translation#custom-formatters
8 */
9export function formatCaption(month, options,
10/** @ignore */
11dateLib = defaultDateLib) {
12 return dateLib.format(month, "LLLL y", options);
13}
14/**
15 * @private
16 * @deprecated Use {@link formatCaption} instead.
17 * @group Formatters
18 */
19export const formatMonthCaption = formatCaption;
20//# sourceMappingURL=formatCaption.js.map
\No newline at end of file