Yes, I’ve used this construction: {{ 'GRAV.MONTHS_OF_THE_YEAR'|ta(post.date|date('n') - 1) }} {{ post.date|date('d') }}
Somewhere on GitHub I’ve found a comment, that GRAV.MONTHS_OF_THE_YEAR already doesn’t take data from ‘languages.yaml’.
But the problem is that it only shows the current month date
Browse to ‘localhost/home’. Page will show ‘March 03’ using the correct current language for the month.
Somewhere on GitHub I’ve found a comment, that GRAV.MONTHS_OF_THE_YEAR already doesn’t take data from ‘languages.yaml’.
Where?
The literal GRAV.MONTHS_OF_THE_YEAR will get its value from ‘/system/languages/<your language>.yaml’. And can be overridden by creating file '/user/languages/<your language>.yaml
Yes, your example works.
But problem is that I need to take a date from archives plugin, the default output looks like: {{ month|date(config.plugins.archives.date_display_format) }}
So, the {{ 'GRAV.MONTHS_OF_THE_YEAR'|ta(page.date|date('n') - 1) }} {{ page.date|date('d') }}
should be changed in something like: {{ 'GRAV.MONTHS_OF_THE_YEAR'|ta(blog.date|date('n') - 1) }} {{ blog.date|date('d') }} as I think, but it doesn’t work.