polyglot
polyglot copied to clipboard
Translate dates
Please, translate the date shown under a post as they are currently all in English. Reported for version 1.5.0.
This currently has to be done manually, as it has to be with any other string. Date formats are very different from each one.
I created a liquid file to help me implement this. You can check it working on the example page of my template.
Liquid date filter doesn't support parsing dates into other languages than english.
https://freakdesign.com.au/blogs/news/translate-a-liquid-date-string-in-shopify
☝️ This blog post describes a way to accomplish this with extra liquid rpogramming. But otherwise this is not something polyglot can help with currently.
If shopify adds further i18n support to their date filter, this can supported better. Unfortunately I can't help further.
The locales support date formats for languages.
What do you mean?
Like e.g. Date.0 in https://www.localeplanet.com/icu/nl-NL/index.html
Yes, but like @untra said it before:
If shopify adds further i18n support to their date filter, this can supported better. Unfortunately I can't help further.
If you check that link it says:
Converts a timestamp into another date format. The format for this syntax is the same as strftime. The input uses the same format as Ruby’s Time.parse.
Unless Ruby's Time.parse and strftime give support for it, there's nothing he can do.