Good day,
I have written a code on my product page that displays the effective delivery date (metafields in the product in working days), since it is a German shop, I would also like to have the date translated into German.
Do you have any advice on how I can solve the problem? Since I’ve already tried the translation in 2 variants, I don’t know of any other solution ![]()
Error message:> Mittwoch, 19. Januar 2022 um 10:53 +0100 bis> translation missing: de.Sunday 30. January 2022> (The translation is okay in the 1st date, but the addition time and +0100 bothers me)
Code:
{% if product.metafields.my_fields.lieferzeitmin != blank %}> > {% assign delivery_day1 = product.metafields.my_fields.lieferzeitmin | times: 86400 %}> {% assign delivery_day2 = product.metafields.my_fields.lieferzeitmax | times: 86400 %}> > {{ “now” | date: “%s” | plus: delivery_day1 | date: de_DE: ‘abbreviated_date’ }}> > bis
{{ “now” | date: “%s” | plus: delivery_day2 | date: “%A %d. %B %Y” | t }}> {% else %}> {% endif %}
Language Code: (Code: Locales / de.json)
“WABEMA”: {> “date”: {> “Monday”: “Montag”,> “Tuesday”: “Montag”,> “Wednesday”: “Mittwoch”,> “Thursday”: “Donnerstag”,> “Friday”: “Freitag”,> “Saturday”: “Samstag”,> “Sunday”: “Sonntag”,> “January”: “Januar”> > …> }> },
Shop-Product site: Link
Thank you very much & have a nice day!
Markus