Date not localized in multi-site config #6916
-
I have a multi-site with the same site in different locales:
When I output a simple date {{ date }} in my antlers template the date is always in English. In the template it shows the right locale ( = ). If I set locale to 'nl' it is also still in English. Am I forgetting something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Don't use https://carbon.nesbot.com/docs/#iso-format-available-replacements |
Beta Was this translation helpful? Give feedback.
-
I know, but what when I use this template for multiple locales? Wouldn't it be nice to create date/numbers formats in de sites.php configuration so that the formatting is covered already? Likes this:
|
Beta Was this translation helpful? Give feedback.
Don't use
{{ date }}
by itself. Use{{ date iso_format="" }}
with the appropriate format.https://carbon.nesbot.com/docs/#iso-format-available-replacements