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

@ -59,22 +59,8 @@ export default {
</div>
<calendar-heatmap
:locale="locale"
:no-data-text="locale.contributions_zero"
:tooltip-formatter="
(v) =>
locale.contributions_format
.replace(
'{contributions}',
`<b>${v.count} ${
v.count === 1
? locale.contributions_one
: locale.contributions_few
}</b>`
)
.replace('{month}', locale.months[v.date.getMonth()])
.replace('{day}', v.date.getDate())
.replace('{year}', v.date.getFullYear())
"
:no-data-text="locale.no_contributions"
:tooltip-unit="locale.contributions"
:end-date="endDate"
:values="values"
:range-color="colorRange"