1 | import { 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 | */
|
9 | export function formatCaption(month, options,
|
10 | /** @ignore */
|
11 | dateLib = defaultDateLib) {
|
12 | return dateLib.format(month, "LLLL y", options);
|
13 | }
|
14 | /**
|
15 | * @private
|
16 | * @deprecated Use {@link formatCaption} instead.
|
17 | * @group Formatters
|
18 | */
|
19 | export const formatMonthCaption = formatCaption;
|
20 | //# sourceMappingURL=formatCaption.js.map |
\ | No newline at end of file |