Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/components/PackageDownloadAnalytics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {
createdIso: string | null
}>()

const { t } = useI18n()
Comment thread
danielroe marked this conversation as resolved.
Outdated
const { accentColors, selectedAccentColor } = useAccentColor()
const colorMode = useColorMode()
const resolvedMode = ref<'light' | 'dark'>('light')
Expand Down Expand Up @@ -487,7 +488,9 @@ const config = computed(() => ({
stroke: isDarkMode.value ? '#4A4A4A' : '#a3a3a3',
labels: {
axis: {
yLabel: $t('package.downloads.y_axis_label', { granularity: selectedGranularity.value }),
yLabel: t('package.downloads.y_axis_label', {
granularity: t(`package.downloads.granularity_${selectedGranularity.value}`),
Comment thread
danielroe marked this conversation as resolved.
Outdated
}),
xLabel: packageName,
yLabelOffsetX: 12,
fontSize: 24,
Expand Down