Skip to content

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

@David-Guillot

Description

@David-Guillot

What happened?

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

  • A non-English post displays an English-formatted non-English date like juillet 15, 2024 instead of 15 juillet 2024 as it should be for French
  • A non-English list page shows the same issue

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

9ea3bb0

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions