feat(i18n): add title texts (#201)

This commit is contained in:
Ayaka Rizumu 2022-11-28 22:25:32 +08:00 committed by GitHub
parent 72abfc3ce3
commit bc44b0127d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 37 additions and 13 deletions

View file

@ -3,15 +3,17 @@ const paginator = useMasto().timelines.getPublicIterable()
const stream = await useMasto().stream.streamPublicTimeline()
onBeforeUnmount(() => stream.disconnect())
const { t } = useI18n()
useHead({
title: 'Federated',
title: () => t('nav_side.federated'),
})
</script>
<template>
<MainContent>
<template #title>
<span text-lg font-bold>Federated Timeline</span>
<span text-lg font-bold>{{ t('title.federated-timeline') }}</span>
</template>
<slot>

View file

@ -3,15 +3,17 @@ const paginator = useMasto().timelines.getPublicIterable({ local: true })
const stream = await useMasto().stream.streamCommunityTimeline()
onBeforeUnmount(() => stream.disconnect())
const { t } = useI18n()
useHead({
title: 'Local',
title: () => t('nav_side.local'),
})
</script>
<template>
<MainContent>
<template #title>
<span text-lg font-bold>Local timeline</span>
<span text-lg font-bold>{{ t('title.local-timeline') }}</span>
</template>
<slot>