diff options
Diffstat (limited to 'web_src/js/features/heatmap.js')
-rw-r--r-- | web_src/js/features/heatmap.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web_src/js/features/heatmap.js b/web_src/js/features/heatmap.js index f80089ee43..2c65293b64 100644 --- a/web_src/js/features/heatmap.js +++ b/web_src/js/features/heatmap.js @@ -18,11 +18,15 @@ 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', - no_contributions: 'No contributions', + contributions_in_the_last_12_months: el.getAttribute('data-locale-total-contributions'), + no_contributions: el.getAttribute('data-locale-no-contributions'), + more: el.getAttribute('data-locale-more'), + less: el.getAttribute('data-locale-less'), }; const View = createApp(ActivityHeatmap, {values, locale}); |