i18n: rename keys
This commit is contained in:
parent
841959b51f
commit
cf5e6ed5b5
28 changed files with 127 additions and 154 deletions
|
@ -21,7 +21,7 @@ onReactivated(() => {
|
|||
<template>
|
||||
<MainContent back>
|
||||
<template #title>
|
||||
<span text-lg font-bold>{{ account ? getDisplayName(account) : t('nav_side.profile') }}</span>
|
||||
<span text-lg font-bold>{{ account ? getDisplayName(account) : t('nav.profile') }}</span>
|
||||
</template>
|
||||
|
||||
<template v-if="pending" />
|
||||
|
|
|
@ -30,7 +30,7 @@ const tabs = $computed(() => [
|
|||
<template #title>
|
||||
<span text-lg font-bold flex items-center gap-2 cursor-pointer @click="$scrollToTop">
|
||||
<div i-ri:hashtag />
|
||||
<span>{{ t('nav_side.explore') }}</span>
|
||||
<span>{{ t('nav.explore') }}</span>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ const paginator = useMasto().trends.iterateStatuses()
|
|||
const hideNewsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_POSTS_TIPS, false)
|
||||
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.posts')} | ${t('nav_side.explore')}`,
|
||||
title: () => `${t('tab.posts')} | ${t('nav.explore')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ const paginator = useMasto().trends.links
|
|||
const hideNewsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_NEWS_TIPS, false)
|
||||
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.news')} | ${t('nav_side.explore')}`,
|
||||
title: () => `${t('tab.news')} | ${t('nav.explore')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ function getTagUrl(tag: Tag) {
|
|||
}
|
||||
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.hashtags')} | ${t('nav_side.explore')}`,
|
||||
title: () => `${t('tab.hashtags')} | ${t('nav.explore')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ const { data, pending, error } = useLazyAsyncData(
|
|||
)
|
||||
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.for_you')} | ${t('nav_side.explore')}`,
|
||||
title: () => `${t('tab.for_you')} | ${t('nav.explore')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ definePageMeta({
|
|||
const { t } = useI18n()
|
||||
|
||||
useHeadFixed({
|
||||
title: () => t('nav_side.bookmarks'),
|
||||
title: () => t('nav.bookmarks'),
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -15,7 +15,7 @@ useHeadFixed({
|
|||
<template #title>
|
||||
<NuxtLink to="/bookmarks" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:bookmark-line />
|
||||
<span>{{ t('nav_side.bookmarks') }}</span>
|
||||
<span>{{ t('nav.bookmarks') }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ definePageMeta({
|
|||
const { t } = useI18n()
|
||||
|
||||
useHeadFixed({
|
||||
title: () => t('nav_side.conversations'),
|
||||
title: () => t('nav.conversations'),
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -15,7 +15,7 @@ useHeadFixed({
|
|||
<template #title>
|
||||
<NuxtLink to="/conversations" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:at-line />
|
||||
<span>{{ t('nav_side.conversations') }}</span>
|
||||
<span>{{ t('nav.conversations') }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ definePageMeta({
|
|||
const { t } = useI18n()
|
||||
|
||||
useHeadFixed({
|
||||
title: () => t('nav_side.favourites'),
|
||||
title: () => t('nav.favourites'),
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -15,7 +15,7 @@ useHeadFixed({
|
|||
<template #title>
|
||||
<NuxtLink to="/favourites" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:heart-3-line />
|
||||
<span>{{ t('nav_side.favourites') }}</span>
|
||||
<span>{{ t('nav.favourites') }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ definePageMeta({
|
|||
|
||||
const { t } = useI18n()
|
||||
useHeadFixed({
|
||||
title: () => t('nav_side.home'),
|
||||
title: () => t('nav.home'),
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -17,7 +17,7 @@ useHeadFixed({
|
|||
<template #title>
|
||||
<NuxtLink to="/home" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:home-5-line />
|
||||
<span>{{ $t('nav_side.home') }}</span>
|
||||
<span>{{ $t('nav.home') }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ onActivated(() => {
|
|||
<template #title>
|
||||
<NuxtLink to="/notifications" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:notification-4-line />
|
||||
<span>{{ t('nav_side.notifications') }}</span>
|
||||
<span>{{ t('nav.notifications') }}</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
const { t } = useI18n()
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.notifications_all')} | ${t('nav_side.notifications')}`,
|
||||
title: () => `${t('tab.notifications_all')} | ${t('nav.notifications')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
const { t } = useI18n()
|
||||
useHeadFixed({
|
||||
title: () => `${t('tab.notifications_mention')} | ${t('nav_side.notifications')}`,
|
||||
title: () => `${t('tab.notifications_mention')} | ${t('nav.notifications')}`,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ const isRootPath = computedEager(() => route.name === 'settings')
|
|||
<template #title>
|
||||
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
||||
<div i-ri:settings-4-line />
|
||||
<span>{{ $t('nav_side.settings') }}</span>
|
||||
<span>{{ $t('nav.settings') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<div xl:w-97 lg:w-78 w-full>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue