Skip to content

Commit b91aab5

Browse files
committed
fix: removed the vue-118n import and used autoimported
1 parent ecbb660 commit b91aab5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/components/LicenseDisplay.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
import { parseLicenseExpression } from '#shared/utils/spdx'
33
44
import { useLicenseChanges } from '~/composables/useLicenseChanges'
5-
import { useI18n } from 'vue-i18n'
65
76
const props = defineProps<{
87
license: string
98
packageName?: string
109
}>()
1110
12-
const { t } = useI18n()
13-
1411
const tokens = computed(() => parseLicenseExpression(props.license))
1512
const licenseChanges = useLicenseChanges(() => props.packageName)
1613
@@ -19,7 +16,7 @@ const changes = computed(() => licenseChanges.data.value?.changes ?? [])
1916
const licenseChangeText = computed(() =>
2017
changes.value
2118
.map(item =>
22-
t('package.versions.license_change_item', {
19+
$t('package.versions.license_change_item', {
2320
from: item.from,
2421
to: item.to,
2522
version: item.version,

0 commit comments

Comments
 (0)