diff --git a/client/components/stats/Heatmap.vue b/client/components/stats/Heatmap.vue index b070934ba..44d1baa82 100644 --- a/client/components/stats/Heatmap.vue +++ b/client/components/stats/Heatmap.vue @@ -152,7 +152,7 @@ export default { this.showingTooltipIndex = index this.tooltipEl.style.display = 'block' - this.tooltipTextEl.innerHTML = block.value ? `${this.$elapsedPretty(block.value, true)} listening on ${block.datePretty}` : `No listening sessions on ${block.datePretty}` + this.tooltipTextEl.innerHTML = block.value ? this.$getString('MessageHeatmapListeningTimeTooltip', [this.$elapsedPrettyLocalized(block.value, true), block.datePretty]) : this.$getString('MessageHeatmapNoListeningSessions', [block.datePretty]) const calculateRect = this.tooltipEl.getBoundingClientRect() diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 6dba7adb0..f31a8a1df 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -805,6 +805,8 @@ "MessageFeedURLWillBe": "Feed URL will be {0}", "MessageFetching": "Fetching...", "MessageForceReScanDescription": "will scan all files again like a fresh scan. Audio file ID3 tags, OPF files, and text files will be scanned as new.", + "MessageHeatmapListeningTimeTooltip": "{0} listening on {1}", + "MessageHeatmapNoListeningSessions": "No listening sessions on {0}", "MessageImportantNotice": "Important Notice!", "MessageInsertChapterBelow": "Insert chapter below", "MessageInvalidAsin": "Invalid ASIN",