I've got News Archive pages that display all entries posted in a certain month/year. For example June 2016 shows all entries created in June of 2016!
I'm fetching the entries based on craft.request.segment
(as the URL ends in /june/2016 etc). This works great for all English months, but when my URL says /juni/2016 (the German month name) it can't find any entries??
{% set month = craft.request.segment(2) %}
{% set year = craft.request.segment(3) %}
It's defintely a translation thing. Anyone know how craft.request.segment
can work with locales (German and simplified Chinese) too?