eliminate i18n errors,

This commit is contained in:
kakkokari-gtyih 2023-12-24 01:00:03 +09:00
parent 9c1dfb304f
commit b80bd86bd8
3 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
<template> <template>
<div class="bg-white dark:bg-slate-950 rounded-2xl p-6 lg:p-12 lg:py-24"> <div class="bg-white dark:bg-slate-950 rounded-2xl p-6 lg:p-12 lg:py-24">
<I18nT keypath="_landing._decenterized.title" tag="h2" class="text-center text-xl lg:text-3xl font-bold font-title mb-6"> <I18nT scope="global" keypath="_landing._decenterized.title" tag="h2" class="text-center text-xl lg:text-3xl font-bold font-title mb-6">
<span class="em">{{ $t('_landing._decenterized.decenterizedPlatform') }}</span> <span class="em">{{ $t('_landing._decenterized.decenterizedPlatform') }}</span>
</I18nT> </I18nT>
<I18nT keypath="_landing._decenterized.description" tag="p" class="lg:text-lg leading-relaxed lg:leading-loose"> <I18nT scope="global" keypath="_landing._decenterized.description" tag="p" class="lg:text-lg leading-relaxed lg:leading-loose">
<span class="font-bold em">{{ $t('_landing._decenterized.activityPub') }}</span> <span class="font-bold em">{{ $t('_landing._decenterized.activityPub') }}</span>
</I18nT> </I18nT>
</div> </div>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="grid docs-main"> <div class="grid docs-main">
<div class="lg:hidden sticky top-16 -mx-6 -mt-6 overflow-y-auto bg-slate-50 dark:bg-slate-900 z-[9890] border-b dark:border-slate-700 text-sm flex items-start"> <div class="lg:hidden sticky top-16 -mx-6 -mt-6 overflow-y-auto bg-slate-50 dark:bg-slate-900 z-[9890] border-b dark:border-slate-700 text-sm flex items-start">
<details v-if="data?.body && data.body.toc?.links.length > 0" class="peer order-2 flex-grow flex-shrink-0" :open="openState"> <details v-if="data?.body && (data.body.toc?.links ?? []).length > 0" class="peer order-2 flex-grow flex-shrink-0" :open="openState">
<summary class="py-4 cursor-pointer"> <summary class="py-4 cursor-pointer">
{{ $t('_docs._toc.title') }} {{ $t('_docs._toc.title') }}
</summary> </summary>
@ -16,7 +16,7 @@
<div class="pt-6 p-0 sm:p-12 lg:p-6 w-full overflow-x-hidden"> <div class="pt-6 p-0 sm:p-12 lg:p-6 w-full overflow-x-hidden">
<template v-if="data?.body"> <template v-if="data?.body">
<Tip v-if="locale !== 'ja'" class="mb-6" :label="$t('_i18n._missing.title')"> <Tip v-if="locale !== 'ja'" class="mb-6" :label="$t('_i18n._missing.title')">
<I18nT keypath="_i18n._missing.description" tag="p"> <I18nT scope="global" keypath="_i18n._missing.description" tag="p">
<template #link> <template #link>
<GNuxtLink class="font-bold hover:underline underline-offset-2" to="https://crowdin.com/project/misskey-hub" target="_blank">{{ $t('_i18n._missing.linkLabel') }}</GNuxtLink> <GNuxtLink class="font-bold hover:underline underline-offset-2" to="https://crowdin.com/project/misskey-hub" target="_blank">{{ $t('_i18n._missing.linkLabel') }}</GNuxtLink>
</template> </template>
@ -53,7 +53,7 @@ import type { MiDocsParsedContent } from '~/types/content';
const isAsideNavOpen = useState<boolean>('miHub_docs_asideNav_openState', () => false); const isAsideNavOpen = useState<boolean>('miHub_docs_asideNav_openState', () => false);
const { locale, locales } = useI18n(); const { locale } = useI18n();
const openState = ref<boolean>(false); const openState = ref<boolean>(false);
const runtimeConfig = useRuntimeConfig(); const runtimeConfig = useRuntimeConfig();

View File

@ -4,7 +4,7 @@
<template #title>{{ $t('_servers.title') }}</template> <template #title>{{ $t('_servers.title') }}</template>
<template #description> <template #description>
{{ $t('_servers.description') }}<br> {{ $t('_servers.description') }}<br>
<I18nT keypath="_servers.addYourServer" tag="span"> <I18nT scope="global" keypath="_servers.addYourServer" tag="span">
<GNuxtLink class="font-bold hover:underline underline-offset-4" to="https://github.com/joinmisskey/api">{{ $t('_servers.addYourServerLink') }}</GNuxtLink> <GNuxtLink class="font-bold hover:underline underline-offset-4" to="https://github.com/joinmisskey/api">{{ $t('_servers.addYourServerLink') }}</GNuxtLink>
</I18nT> </I18nT>
</template> </template>