This repository has been archived by the owner on May 24, 2024. It is now read-only.
Date Format Incorrect in Gantt Chart for Some Locales #139
Labels
assessing issue
Size: 5
spike
Up Next - KC
Issues that are ready to pull into an iteration for the KC team
Milestone
As a developer for terra-graphs, I'd like to spike on how we can best internationalize strings of the form "Mon DD"
So that, these types of strings will be able to show up properly in other languages
We'll know we're done when we have a proposal on how best to internationalize these strings. This could include changes to d3-scale or our own code. We should have an issue logged with the concrete description of what the plan is to fix this as a result of this spike.
Bug Report
When using the Gantt Chart (at least), the dates displaying above the graph are not displaying in the correct format for all locales it seems. In the "en" locale, dates display as "Mon DD" for example "Dec 29". However, in some other locales, this format should update to be "29 Dec". This apparently should be the case for at least Swedish, Dutch, and French, and maybe others. I am restricting this report to the Gantt Chart since it is what we are using, however, it may apply to other charts which display dates.
Description
When displaying dates above the Gantt chart, the formatting is not localized. The abbreviations seem to be, but not the display order of Mon DD / DD Mon. If needed I can try to provide an example.
Graphs affected
Note: AT LEAST Gantt chart is affected, there may be others.
Steps to Reproduce
Link to CodeSandbox
For now I have not created a reproduction. If needed I can do so.
Additional Context / Screenshots
Swedish Locale screenshot showing incorrect date formatting.
Dutch Locale screenshot showing incorrect date formatting.
French Locale screenshot showing incorrect date formatting.
Expected Behavior
Dates in the Gantt chart and other graphs should be have their format localized appropriately, similar to, for example, moment's locale-aware date formatting feature.
Possible Solution
Implement some kind of locale-aware date formatting tool or feature that allows for locale-sensitive arrangement of the date elements.
Environment
@ Mentions
@AshishMotanamGurunadham directed me here to submit an issue. I have not worked with anyone regarding investigation or anything similar.
The text was updated successfully, but these errors were encountered: