Hey together,
In Kirby 2 it was possible to translate dates by adding this to the config file and the template:
c::set('locale', 'de_DE');
c::set('date.handler', 'strftime');
<?= strftime ($article->date('%d %B %Y')) ?>
In Kirby 3 I did the same:
<?php
return [
'date.handler' => 'strftime',
'locale' => 'de_DE.utf-8',
];
<?= strftime ($article->date()->toDate('%d %B %Y')) ?>
But this only works if I set languages=> ‘true’; and add German as a primary language. Any Ideas of how I can archive this without adding languages?
Have great weeken everyone
Florian