File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,13 @@ const isOpen = shallowRef(false)
2020const highlightedIndex = shallowRef (- 1 )
2121const dropdownPosition = shallowRef <{ top: number ; left: number } | null >(null )
2222
23- const { t } = useI18n ()
2423const menuId = ' download-menu'
2524const menuItems = computed (() => {
26- const items = [{ id: ' package' , label: t ( ' package.download.package' ) , icon: ' i-lucide:package' }]
25+ const items = [{ id: ' package' , labelKey: ' package.download.package' , icon: ' i-lucide:package' }]
2726 if (props .dependencies ?.length ) {
2827 items .push ({
2928 id: ' dependencies' ,
30- label: t ( ' package.download.dependencies' ) ,
29+ labelKey: ' package.download.dependencies' ,
3130 icon: ' i-lucide:list-tree' ,
3231 })
3332 }
@@ -245,7 +244,7 @@ defineOptions({
245244 @mouseenter =" highlightedIndex = index"
246245 >
247246 <span :class =" item.icon" class =" w-4 h-4" aria-hidden =" true" />
248- {{ item.label }}
247+ {{ $t( item.labelKey) }}
249248 </li >
250249 </ul >
251250 </Transition >
You can’t perform that action at this time.
0 commit comments