Skip to content

Commit efce157

Browse files
committed
fix: remove useI18n() to prevent error
1 parent 516baeb commit efce157

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/plugins/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default defineNuxtPlugin(() => {
2-
const { register } = useCommandRegistry()
32
const router = useRouter()
4-
5-
const { t } = useI18n()
3+
const { $i18n } = useNuxtApp()
4+
const t = $i18n.t
5+
const { register } = useCommandRegistry()
66

77
register({
88
id: 'packages:search',

0 commit comments

Comments
 (0)