Wrong months in Spanish
rgallo67 opened this issue · 5 comments
Hi,
After august, the month names are displaced one position. E.g. now appears 'noviembre' instead 'octubre' (the right one).
I believe that the problem is that after 'agosto' there isn't a comma:
'months':[
'enero',
'febrero',
'marzo',
'abril',
'mayo',
'junio',
'julio',
'agosto'
'septiembre',
'octubre',
'noviembre',
'diciembre'
]
Please, solve this little problem... thks.
That's not the problem, what macro are you using? month? Can you show me how you use it?
Hi,
Yes, the macro I'm using is month. This is the template:
{% from 'easy_time.jinja' import month,weekday %}
{{ weekday('None', 'es')|capitalize + now().strftime(", %d de ") + month('None', 'es') + now().strftime(" de %Y") }}
{% from 'easy_time.jinja' import month,weekday %}
{{ weekday('None', 'es')|capitalize + now().strftime(", %d de ") + month('None', 'es') + now().strftime(" de %Y") }}
I can confirm that using
{% from 'easy_time.jinja' import month,weekday %}
{{ weekday('None', 'es')|capitalize + now().strftime(", %d de ") + month('None', 'it') + now().strftime(" de %Y") }}shows
Martes, 15 de ottobre de 2024
so is only related to ES
Hi,
Yes, the macro I'm using is month. This is the template:
{% from 'easy_time.jinja' import month,weekday %} {{ weekday('None', 'es')|capitalize + now().strftime(", %d de ") + month('None', 'es') + now().strftime(" de %Y") }}
Are you sure you're using the latest release? The current release has the comma, and the month macro works as expected when I set the language to es
EDIT: I Must be going crazy, I could swear I checked the comma this morning and it was there. I'll make a release with a fix shortly.
I've downloaded new version (v2.1.0.2) and the problem is solved.
Thank you.