i18n: rename keys

This commit is contained in:
Anthony Fu 2022-12-27 18:49:15 +01:00
parent 841959b51f
commit cf5e6ed5b5
28 changed files with 127 additions and 154 deletions

View file

@ -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" />

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>