You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formats passed in date_formats only work for English, even if languages=["es"] #433
Apparently, months, weekdays etc. are not captured if they are specified in a custom format passed in date_formats unless they are written in English, independently from the languages you pass under languages. I add an example below.
I tried to figure out if we could internally change the locale and try the format in multiple locales, but I think changing the locale is discouraged and could cause other issues...
Activity
noviluni commentedon Nov 23, 2020
This is not exactly true. The
date_formatsdepends on the locale set on the computer. If the locale is 'es' this shouldn't happen.You can usually change the locale by doing this (it works for me on Ubuntu):
Now this will work:
I tried to figure out if we could internally change the locale and try the format in multiple locales, but I think changing the locale is discouraged and could cause other issues...
I will check this again in the future.
Gallaecio commentedon Nov 23, 2020
Looks like we might need something like https://stackoverflow.com/a/24070673