Skip to content

Commit

Permalink
fix: Extend Vue runtime core to inclue route and i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Mar 1, 2025
1 parent 360829c commit 0dd2f4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src-vue/src/components/ThunderstoreModCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ export default defineComponent({
this.isBeingUpdated = false;
this.$store.commit('loadInstalledMods');
});
// @ts-ignore
})(this.$i18n.t);
},
Expand Down
2 changes: 2 additions & 0 deletions src-vue/src/vuex-shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Store } from 'vuex'

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$i18n: I18n;
$route: Route;
$store: Store<FlightCoreStore>,
$t: (key: string, ...params: any[]) => string;
}
Expand Down

0 comments on commit 0dd2f4d

Please sign in to comment.