1

I am building a german calendar and am struggling having one language throughout all datetime outputs. The website is set to lang = de but the outputs of the solspace calendar is still english.

  • I have now the Intl-Extension for twig installed in order to use the localizeddate filter. It just doesn't work. {{ "now"|localizeddate("m/d/Y") }} – analog junkie Nov 15 '18 at 16:27
1

Thanks to Kelsey Martens of solspace I found the key. The solspace demo calender uses the .format() method which doesn't translate to the sites language. Now I use the |date filter instead which translates also month and daynames.

  • 1
    If you are on Craft 3, you can tryout my plugin called Translitedated which allows you to pass a date format and a language/locale for the date to be outputted as. Not directly what you are looking for but if you run into language specific date issues you can try it. – Indigo Viking Dec 23 '18 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.