Issues Analytics graphs fail to load for some languages
This issue was discovered by the Japanese translation team, but likely affects other languages as well.
English | Japanese |
---|---|
Steps to reproduce
- Change language to Japanese in user settings
- Visit Issues analytics page for any project: https://gitlab.com/gitlab-org/gitlab/-/analytics/issues_analytics
Console log
Solution
We are using a localized string as a GraphQL key, which is causing this issue. In the query builder, we are using the abbreviated month name generated by generateChartDateRangeData. We will need to update the query builder to use a translation-safe key instead.