Skip to content

Commit

Permalink
i18n fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Aug 28, 2023
1 parent a3cac81 commit e1dad93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { t } = useI18n()

<i18n lang="yaml">
en-GB:
to-userpage: to my profile
to-userpage: to profile

zh-CN:
to-userpage: 用户页面
Expand All @@ -28,7 +28,7 @@ zh-CN:
{{ config.title }}
</h1>
<h2 class="font-semibold px-2 sm:px-0 h-sub text-md sm:text-left whitespace-pre-line">
{{ t('landing.content', { title: config.title }) }}
{{ $t('landing.content', { title: config.title }) }}
</h2>
</div>
<div class="grid grid-cols-2 gap-2 justify-center">
Expand All @@ -43,7 +43,7 @@ zh-CN:
{{ t('to-userpage') }}
</t-nuxt-link-locale-button>
<t-nuxt-link-locale-button :to="{ name: 'me-settings' }" variant="secondary">
{{ t('titles.settings').toLocaleLowerCase() }}
{{ $t('titles.settings').toLocaleLowerCase() }}
</t-nuxt-link-locale-button>
</template>
<template v-else>
Expand Down

0 comments on commit e1dad93

Please sign in to comment.