Skip to content

Commit

Permalink
fix: specify scope when using i18n-t
Browse files Browse the repository at this point in the history
do not render route if component hasn't loaded yet
  • Loading branch information
simonwep committed Dec 17, 2023
1 parent 29dd592 commit d51ea32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/Frame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<div ref="panes" :class="$style.panes">
<RouterView v-slot="{ Component }">
<ComponentTransition :is="Component" />
<ComponentTransition :is="Component" v-if="Component" />
</RouterView>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</template>
<template #title>
<span>
<i18n-t keypath="page.dashboard.header">
<i18n-t keypath="page.dashboard.header" scope="global">
<template #year>
<TextWheel :values="allYears" :value="state.activeYear" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/navigation/info/InfoDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Dialog :open="open" :title="t('navigation.info.about')" @close="emit('close')">
<div :class="$style.infoBox">
<span :class="$style.link">
<i18n-t keypath="navigation.info.github">
<i18n-t keypath="navigation.info.github" scope="global">
<template #link>
<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->
<Link :custom="false" color="primary" to="https://github.com/simonwep/ocular">Github</Link>
Expand Down

0 comments on commit d51ea32

Please sign in to comment.