i18n: translate titles

This commit is contained in:
三咲智子 2023-01-04 22:04:37 +08:00
parent 377c015c91
commit 482e8c1c3a
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 19 additions and 8 deletions

View file

@ -144,6 +144,8 @@
"unpin_on_profile": "Unpin on profile" "unpin_on_profile": "Unpin on profile"
}, },
"nav": { "nav": {
"blocked_domains": "Blocked domains",
"blocked_users": "Blocked users",
"bookmarks": "Bookmarks", "bookmarks": "Bookmarks",
"built_at": "Built {0}", "built_at": "Built {0}",
"conversations": "Conversations", "conversations": "Conversations",
@ -152,6 +154,7 @@
"federated": "Federated", "federated": "Federated",
"home": "Home", "home": "Home",
"local": "Local", "local": "Local",
"muted_users": "Muted users",
"notifications": "Notifications", "notifications": "Notifications",
"profile": "Profile", "profile": "Profile",
"search": "Search", "search": "Search",

View file

@ -135,6 +135,8 @@
"unpin_on_profile": "取消置顶" "unpin_on_profile": "取消置顶"
}, },
"nav": { "nav": {
"blocked_domains": "已拉黑的域名",
"blocked_users": "已拉黑的用户",
"bookmarks": "书签", "bookmarks": "书签",
"built_at": "于 {0}构建", "built_at": "于 {0}构建",
"conversations": "私信", "conversations": "私信",
@ -143,6 +145,7 @@
"federated": "跨站", "federated": "跨站",
"home": "主页", "home": "主页",
"local": "本地", "local": "本地",
"muted_users": "已屏蔽的用户",
"notifications": "通知", "notifications": "通知",
"profile": "个人资料", "profile": "个人资料",
"search": "搜索", "search": "搜索",

View file

@ -3,15 +3,17 @@ definePageMeta({
middleware: 'auth', middleware: 'auth',
}) })
const { t } = useI18n()
useHeadFixed({ useHeadFixed({
title: 'Blocked users', title: () => t('nav.blocked_users'),
}) })
</script> </script>
<template> <template>
<MainContent back> <MainContent back>
<template #title> <template #title>
<span text-lg font-bold>{{ $t('account.blocked_users') }}</span> <span text-lg font-bold>{{ $t('nav.blocked_users') }}</span>
</template> </template>
<TimelineBlocks v-if="isMastoInitialised" /> <TimelineBlocks v-if="isMastoInitialised" />

View file

@ -1,19 +1,19 @@
<script setup lang="ts"> <script setup lang="ts">
import TimelineDomainBlocks from '~~/components/timeline/TimelineDomainBlocks.vue'
definePageMeta({ definePageMeta({
middleware: 'auth', middleware: 'auth',
}) })
const { t } = useI18n()
useHeadFixed({ useHeadFixed({
title: 'Blocked domains', title: () => t('nav.blocked_domains'),
}) })
</script> </script>
<template> <template>
<MainContent back> <MainContent back>
<template #title> <template #title>
<span text-lg font-bold>{{ $t('account.blocked_domains') }}</span> <span text-lg font-bold>{{ $t('nav.blocked_domains') }}</span>
</template> </template>
<TimelineDomainBlocks v-if="isMastoInitialised" /> <TimelineDomainBlocks v-if="isMastoInitialised" />

View file

@ -2,15 +2,18 @@
definePageMeta({ definePageMeta({
middleware: 'auth', middleware: 'auth',
}) })
const { t } = useI18n()
useHeadFixed({ useHeadFixed({
title: 'Muted users', title: () => t('nav.muted_users'),
}) })
</script> </script>
<template> <template>
<MainContent back> <MainContent back>
<template #title> <template #title>
<span text-lg font-bold>{{ $t('account.muted_users') }}</span> <span text-lg font-bold>{{ $t('nav.muted_users') }}</span>
</template> </template>
<TimelineMutes v-if="isMastoInitialised" /> <TimelineMutes v-if="isMastoInitialised" />