Skip to content

Commit 8085af1

Browse files
committed
fix: declare global interface for i18n on window object
1 parent 6c66d27 commit 8085af1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adminforth/spa/src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import { createPinia } from 'pinia'
66
import App from './App.vue'
77
import router from './router'
88
import { initI18n } from './i18n'
9+
declare global {
10+
interface Window {
11+
i18n: any;
12+
}
13+
}
914

1015
export const app: ReturnType<typeof createApp> = createApp(App)
1116
/* IMPORTANT:ADMINFORTH COMPONENT REGISTRATIONS */

0 commit comments

Comments
 (0)