Skip to content

Commit 0dd2f4d

Browse files
committed
fix: Extend Vue runtime core to inclue route and i18n
1 parent 360829c commit 0dd2f4d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src-vue/src/components/ThunderstoreModCard.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ export default defineComponent({
254254
this.isBeingUpdated = false;
255255
this.$store.commit('loadInstalledMods');
256256
});
257-
// @ts-ignore
258257
})(this.$i18n.t);
259258
260259
},

src-vue/src/vuex-shim.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Store } from 'vuex'
33

44
declare module '@vue/runtime-core' {
55
interface ComponentCustomProperties {
6+
$i18n: I18n;
7+
$route: Route;
68
$store: Store<FlightCoreStore>,
79
$t: (key: string, ...params: any[]) => string;
810
}

0 commit comments

Comments
 (0)