'use strict';

var DateLib = require('../classes/DateLib.cjs');

/**
 * Format the years for the dropdown option label.
 *
 * @group Formatters
 * @see https://daypicker.dev/docs/translation#custom-formatters
 */
function formatYearDropdown(year, dateLib = DateLib.defaultDateLib) {
    return dateLib.format(year, "yyyy");
}
/**
 * @private
 * @deprecated Use `formatYearDropdown` instead.
 * @group Formatters
 */
const formatYearCaption = formatYearDropdown;

exports.formatYearCaption = formatYearCaption;
exports.formatYearDropdown = formatYearDropdown;
//# sourceMappingURL=formatYearDropdown.cjs.map
