1
0
Fork 0
forked from forgejo/forgejo

Revert "Fix heatmap localization"

It conflicts with unmerged translations.

This reverts commit 708f4bc3b6.
This commit is contained in:
Earl Warren 2024-03-20 07:31:23 +01:00
parent 4c40a261d5
commit ba75514887
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
25 changed files with 33 additions and 57 deletions

View file

@ -18,14 +18,13 @@ export function initHeatmap() {
return {date: new Date(v), count: heatmap[v]};
});
// last heatmap tooltip localization attempt https://github.com/go-gitea/gitea/pull/24131/commits/a83761cbbae3c2e3b4bced71e680f44432073ac8
const locale = {
months: new Array(12).fill().map((_, idx) => translateMonth(idx)),
days: new Array(7).fill().map((_, idx) => translateDay(idx)),
contributions: 'contributions',
contributions_in_the_last_12_months: el.getAttribute('data-locale-total-contributions'),
contributions_zero: el.getAttribute('data-locale-contributions-zero'),
contributions_format: el.getAttribute('data-locale-contributions-format'),
contributions_one: el.getAttribute('data-locale-contributions-one'),
contributions_few: el.getAttribute('data-locale-contributions-few'),
no_contributions: el.getAttribute('data-locale-no-contributions'),
more: el.getAttribute('data-locale-more'),
less: el.getAttribute('data-locale-less'),
};