Skip to content

Commit

Permalink
Fix localePaths from index page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolobok12309 committed Feb 29, 2024
1 parent b38995a commit abe10cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
{{ t('utilDescription') }}

<NuxtLink
to="/size-adjust"
:to="localePath('/size-adjust')"
class="text-slate-300 hover:underline"
>size-adjust</NuxtLink
>,

<NuxtLink
to="/ascent-override"
:to="localePath('/ascent-override')"
class="text-slate-300 hover:underline"
>ascent-override</NuxtLink
>,

<NuxtLink
to="/descent-override"
:to="localePath('/descent-override')"
class="text-slate-300 hover:underline"
>descent-override</NuxtLink
>

{{ t('and') }}

<NuxtLink
to="/line-gap-override"
:to="localePath('/line-gap-override')"
class="text-slate-300 hover:underline"
>line-gap-override</NuxtLink
>.
Expand All @@ -38,6 +38,8 @@
const { t } = useI18n({
useScope: 'local',
});
const localePath = useLocalePath();
</script>

<i18n lang="json">
Expand Down

0 comments on commit abe10cd

Please sign in to comment.