Skip to content

Commit b21c8ac

Browse files
committed
fix: Update function to use correct translation function
1 parent f5c594b commit b21c8ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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)