adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
10.26k stars 2.72k forks source link

[Bug]: Non-English dates appear English-formatted #1611

Open David-Guillot opened 1 month ago

David-Guillot commented 1 month ago

What happened?

On a multilingual blog with translated posts, the same issue appears at two places:

Steps to reproduce

It's visible on my blog:

  1. Go to https://david.guillot.me/en/posts/tech/following-up-mother-of-all-htmx-demos/
  2. See that just below the post title, the date is, correctly, July 15, 2024
  3. Now click on the Fr link to see this posts French translation
  4. Now you're on https://david.guillot.me/fr/posts/tech/suite-a-ma-presentation-de-react-vers-htmx-djangocon-europe-2022/, and you can see that just below the post title, the date is, incorrectly, juillet 15, 2024 ; the date has been translated, but not localized ; it should be 15 juillet 2024
  5. Now you can click on Technologie in the top menu to get to the section list page, and you can see the posts dates are also English-formatted non-English dates

Hugo Version

Hugo >= 0.112.4 (Recommended - Minimum version required for PaperMod)

PaperMod Version

9ea3bb0e1f3aa06ed7715e73b5fabb36323f7267

What kind of devices are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Browser Version

No response

Relevant log output

Nothing relevant to show here, it's an HTML templating bug.

Repository/Source Code link where this issue can be reproduced

https://codeberg.org/David-Guillot/blog

Code of Conduct