Skip to content

Commit e547675

Browse files
fix: y axis label translation (#241)
Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 20892fc commit e547675

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/components/PackageDownloadAnalytics.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ const config = computed(() => ({
487487
stroke: isDarkMode.value ? '#4A4A4A' : '#a3a3a3',
488488
labels: {
489489
axis: {
490-
yLabel: $t('package.downloads.y_axis_label', { granularity: selectedGranularity.value }),
490+
yLabel: $t('package.downloads.y_axis_label', {
491+
granularity: $t(`package.downloads.granularity_${selectedGranularity.value}`),
492+
}),
491493
xLabel: packageName,
492494
yLabelOffsetX: 12,
493495
fontSize: 24,

0 commit comments

Comments
 (0)