{% load i18n %} {% get_current_language as calendar_language %} {% comment %} Upstream hands the month grid to react-day-picker. A copied template has no library to hand it to and no Python of its own, so the grid is built here from the calendar the browser already carries. The language is the one Django has active for the request, which is what keeps the month and weekday names following the site rather than the visitor's browser settings. `first_day` overrides the day the locale starts the week on, for a project whose FIRST_DAY_OF_WEEK disagrees with it. Left empty, the locale decides. With `name` set the component is a form field on its own: the hidden input carries the selection, and it carries `value` before Alpine has started. {% endcomment %}
{% comment %} size="" so the button contributes its variant and nothing else: the cell is sized by --cell-size, and a height from the button would fight it with no way to say which one wins. {% endcomment %}
{% if name %} {% endif %}