aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/heatmap.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/heatmap.ts')
-rw-r--r--web_src/js/features/heatmap.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/heatmap.ts b/web_src/js/features/heatmap.ts
index 69cd069a94..53eebc93e5 100644
--- a/web_src/js/features/heatmap.ts
+++ b/web_src/js/features/heatmap.ts
@@ -21,8 +21,8 @@ export function initHeatmap() {
// last heatmap tooltip localization attempt https://github.com/go-gitea/gitea/pull/24131/commits/a83761cbbae3c2e3b4bced71e680f44432073ac8
const locale = {
heatMapLocale: {
- months: new Array(12).fill().map((_, idx) => translateMonth(idx)),
- days: new Array(7).fill().map((_, idx) => translateDay(idx)),
+ months: new Array(12).fill(undefined).map((_, idx) => translateMonth(idx)),
+ days: new Array(7).fill(undefined).map((_, idx) => translateDay(idx)),
on: ' - ', // no correct locale support for it, because in many languages the sentence is not "something on someday"
more: el.getAttribute('data-locale-more'),
less: el.getAttribute('data-locale-less'),