-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Date range in activity page is not localized #21380
Comments
I'll take this |
This was referenced Oct 9, 2022
lafriks
pushed a commit
that referenced
this issue
Oct 12, 2022
…ity page (#21410) # Description Previously, to make the date range understood by all, we used the format "2006-01-02" for the dates as it's locale-generic. This commit changes the rendering logic. Instead of rendering the date on the server, we send a formatted computer-readable timestamp. The client's javascript then renders it according to the user's locale. This approach is reusable across the codebase, any `<time></time>` tag with the data-format="date" attribute would get rendered according to the user's chosen locale. ## Previous View  ## New View ### English  ### French  ### Portuguese  ### Italian  # References * #21380 * #21387 * #21396 Inspiration: I think either differentiating by class, or probably better by a custom attribute such as `data-format` or similar, is the best course of action. _Originally posted by @delvh in #21396 (comment) Resolves #21380 Signed-off-by: Yarden Shoham <[email protected]> Co-authored-by: silverwind <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The date range on the top left of the activity board is not localized. It always shows up in English, independently of the chosen interface language. It affects every version that I've tested, including the development one:
https://try.gitea.io/emansije/teste/activity/yearly
Testing it is just a matter of selecting any localization while on the activity page.
Screenshots
Gitea Version
1.17.2
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Garuda Linux
Browser Version
Firefox 105.0.3 (64-bit)
The text was updated successfully, but these errors were encountered: