[openstreetmap/openstreetmap-website] Add user profile heatmap visualization for contributions (PR #5402)
Anton Khorev
notifications at github.com
Fri Jan 31 13:40:49 UTC 2025
@AntonKhorev commented on this pull request.
> + const translations = I18n.translations[locale] || I18n.translations.en;
+ const date = translations && translations.date;
+ const abbrMonthNames = date && date.abbr_month_names;
+
+ const months = abbrMonthNames || [];
+ return months[monthIndex + 1] || "";
```suggestion
return I18n.strftime(new Date(2000, monthIndex, 15), "%b");
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5402#pullrequestreview-2586789797
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5402/review/2586789797 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250131/28bf0556/attachment.htm>
More information about the rails-dev
mailing list