UNPKG

691 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.labelCaption = void 0;
4exports.labelGrid = labelGrid;
5const index_js_1 = require("../lib/index.js");
6/**
7 * Return an ARIA label for the month grid, that will be announced when entering
8 * the grid.
9 *
10 * @defaultValue `LLLL y` (e.g. "November 2022")
11 * @group Labels
12 * @see https://daypicker.dev/docs/translation#aria-labels
13 */
14function labelGrid(date, options,
15/** @ignore */
16dateLib = index_js_1.dateLib) {
17 return dateLib.format(date, "LLLL y", options);
18}
19/**
20 * @deprecated Use {@link labelGrid} instead.
21 * @protected
22 */
23exports.labelCaption = labelGrid;
24//# sourceMappingURL=labelGrid.js.map
\No newline at end of file