Skip to content

Commit

Permalink
Localize create link button
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiabdm committed Jun 7, 2024
1 parent 032a987 commit 591113b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion layouts/landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const CVFY_IMAGE = 'https://cvfy.xyz/CvFy-no-border.png'
const { locale, t } = useI18n()
const route = useRoute()
const localePath = useLocalePath()
const HREF = `https://cvfy.xyz${route.path}`
const GITHUB = 'https://github.com/claudiabdm/cvfy'
Expand Down Expand Up @@ -123,7 +124,7 @@ useHead({
</LandingLink>
<LandingLangSwitch />
<LandingLink
to="create"
:to="localePath('create')"
cta
>
{{ $t('create-cv') }}
Expand Down
3 changes: 2 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" setup>
const localePath = useLocalePath()
definePageMeta({
titleI18n: 'title-tag',
layout: 'landing',
Expand All @@ -21,7 +22,7 @@ definePageMeta({
{{ $t('hero-paragraph') }}
</p>
<LandingLink
to="create"
:to="localePath('create')"
cta
>
<span>{{ $t('get-started') }}</span>
Expand Down

0 comments on commit 591113b

Please # to comment.