{% macro format_chinese_date(year, month, day) %}
{% set lut1 = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九"] %}
{% set lut2 = [
    '一',   '二',   '三',     '四',
    '五',   '六',   '七',     '八',
    '九',   '十',   '十一',   '十二',
    '十三', '十四', '十五',   '十六',
    '十七', '十八', '十九',   '二十',
    '廿一', '廿二', '廿三',   '廿四',
    '廿五', '廿六', '廿七',   '廿八',
    '廿九', '三十', '三十一'] %}
{% for c in year | as_str %}
    {{ lut1 | nth(n=c | int) }}
{% endfor %}
年{{ lut2 | nth(n=month-1)}}月{{ lut2 | nth(n=day-1) }}日
{% endmacro %}