-
-
Notifications
You must be signed in to change notification settings - Fork 102
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 Localization Issues with dayjs #391
Comments
This seems to be a problem with our loading of these translations. The italian translation files seem correct. @dpschen Do you have an idea what could be wrong here? |
Crowdin syncs all languages, but only those with translated strings of more than 50% are added to Italian is included correctly, but the date strings are not used? |
I see, will check further, thanks for clarification! I wasn't aware that Crowdin also changed the Why do we add json files of languages that have less than 50%? |
It doesn't, the crowdin sync will only create the files. Adding a language to
That's a limitation of the crowdin sync job. |
It looks like the part of Vikunja from the screenshot in the first comment does not use dayjs, but date-fns (a different library) 🙃 https://github.com/go-vikunja/vikunja/blob/main/frontend/src/helpers/time/formatDate.ts#L4-L5 Why again do we have two date libraries? |
Not all translated strings are approved. Only approved strings will show up in Vikunja. |
From what I understand the changes can be viewed at https://try.vikunja.io/. Checked it out. There's still a problem with the dates. ![]() ![]() |
This removes date-fns and replaces it with the already used dayjs library. It does not make sense to have two libraries for the same purpose, and dayjs seems to be smaller and its translations are already integrated. Since we have to use dayjs because it is used by the gantt chart, this was the obvious way to go (instead of replacing dayjs with date-fns). Resolves go-vikunja#391 Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/3039 Co-authored-by: kolaente <[email protected]> Co-committed-by: kolaente <[email protected]>
This seems to affect a handful of languages, but it's completely unclear to me why. Dayjs has all the required translations. |
Description
Hi, I have some issues with date localization. I initially thought it was due to localization settings, but I realized it depends on the localization provided by dayjs.
I also checked on https://try.vikunja.io and noticed that other languages besides Italian have localization issues.
In practice, only German, French, and Russian are translated correctly, and maybe a few others (I haven't checked everything).
Vikunja Version
v0.24.1-657-8ba9ded3e2
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
The text was updated successfully, but these errors were encountered: