Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
David-Guillot opened this issue Oct 7, 2024 · 0 comments
Open
1 task done

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

David-Guillot opened this issue Oct 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@David-Guillot
Copy link

David-Guillot commented Oct 7, 2024

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
@David-Guillot David-Guillot added the bug Something isn't working label Oct 7, 2024
@David-Guillot David-Guillot changed the title [Bug]: non-English post displays an English-formatted non-English date [Bug]: non-English dates are English-formatted Oct 7, 2024
@David-Guillot David-Guillot changed the title [Bug]: non-English dates are English-formatted [Bug]: non-English dates appear English-formatted Oct 7, 2024
@David-Guillot David-Guillot changed the title [Bug]: non-English dates appear English-formatted [Bug] Non-English dates appear English-formatted Oct 7, 2024
@David-Guillot David-Guillot changed the title [Bug] Non-English dates appear English-formatted [Bug]: Non-English dates appear English-formatted Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant