Skip to content

Commit 6a28f59

Browse files
committed
fix: Update function to use correct translation function
1 parent 5d3bea5 commit 6a28f59

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/components/Package/DownloadButton.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ const isOpen = shallowRef(false)
2020
const highlightedIndex = shallowRef(-1)
2121
const dropdownPosition = shallowRef<{ top: number; right: number } | null>(null)
2222
23+
const { t } = useI18n()
2324
const menuId = useId()
2425
const menuItems = computed(() => [
25-
{ id: 'package', label: $t('package.download.package'), icon: 'i-lucide:package' },
26-
{ id: 'dependencies', label: $t('package.download.dependencies'), icon: 'i-lucide:list-tree' },
26+
{ id: 'package', label: t('package.download.package'), icon: 'i-lucide:package' },
27+
{ id: 'dependencies', label: t('package.download.dependencies'), icon: 'i-lucide:list-tree' },
2728
])
2829
2930
function getDropdownStyle(): Record<string, string> {

0 commit comments

Comments
 (0)