{% load i18n %}
{% get_current_language as date_picker_language %}
{% comment %}
Upstream ships this as a recipe rather than a component: a popover, a button and
a calendar, wired together in the page. Here it is one component, because the
wiring is the part a Django form needs to get right — the hidden input carries
the ISO value the server parses, while the button shows the date the way the
active locale writes it.
Without JavaScript the input still submits whatever `value` arrived with.
{% endcomment %}
{% comment %}
Upstream puts the width on the trigger. It sits here instead so a caller can
change it: a class handed to a component cannot reach an element the component
renders further in, and `w-full` on this element wins over the default.
{% endcomment %}
{{ placeholder }}
{% if name %}
{% endif %}
{{ slot }}