i18n: translate titles

zio/stable
三咲智子 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"
},
"nav": {
"blocked_domains": "Blocked domains",
"blocked_users": "Blocked users",
"bookmarks": "Bookmarks",
"built_at": "Built {0}",
"conversations": "Conversations",
@ -152,6 +154,7 @@
"federated": "Federated",
"home": "Home",
"local": "Local",
"muted_users": "Muted users",
"notifications": "Notifications",
"profile": "Profile",
"search": "Search",

View File

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

View File

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

View File

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

View File

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