-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Issue with date-time translations, losing the default format #716
Comments
Explain to you how the datatime is rendered:
Unfortunately, the format of strftime is not strong enough to support internationalized local time. If different time formats are used between 1 and 2, a text jitter will occur. So in languages other than English, I choose to use |
Thanks a lot @cotes2020 for the explanations! Do you think it could be somehow possible to have new dedicated configuration properties for both:
In order to be able to override the default date format when using another language than English? This would allow me to use |
Ok thanks, I do understand although I would have liked an alternative to be able to choose the date format. |
Checklist
master
branch of the latest code.Is your feature request related to a problem? Please describe
I recently migrated to chirpy-starter and first I want to say that I really appreciate this tools that simplify a lot the repository content. But I have an issue with date-time translation.
In the
_config.yml
file, I use:But the date-time for posts (list items and detail page) is not as in default English: "Aug 9, 2019" (in French) but: "2019-08-09".
Same for archives, I got: "09 / 08" instead of default English :"09 Aug".
Only the tooltip of post's detail is well translated from default English: "Fri, Aug 9, 2019 2:55 PM" to: "ven. 9 août 2019 14:55" (actually we are losing the case).
Describe the solution you'd like
I would like to have the same date-time format as in English but translated in the language I did choose.
Either an option to define date(-time) formats (for example in French, the date is displayed as:
DD/MM/YYYY
for example.), or using the same format as the default one for English.I believed this current behavior is due to those two parts of the code:
Describe alternatives you've considered
I know I could migrate back to jekyll-theme-chirpy instead of using chirpy-starter. And then edit the two codes parts to the following:
But I feel like this should be part of the configuration and that chirpy-starter may use this.
Additional context
Actually I did try to do the alternative solution (that works well). But when choosing that, there were like a 300ms time where the value of the date-time was not translated yet when displaying a page.
So this might be the reason why this workaround has been done.
But I don't feel like this is the right way. I don't know if we could display this value only after it has been translated?
The text was updated successfully, but these errors were encountered: