{#- Expects: p, a period string: "2026", "2026-Q4" or "2026-11". Prints a human label. -#} {%- if p|length == 4 -%}{{ t('period.year')|replace('%Y', p) }} {%- elif p[5:6] == 'Q' -%}{{ t('period.q' ~ p[6:7])|replace('%Y', p[:4]) }} {%- else -%}{{ t('period.m' ~ p[5:7]) }} {{ p[:4] }} {%- endif -%}