mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
add missing translations
This commit is contained in:
parent
83a2f90842
commit
6e58a320ca
3 changed files with 37 additions and 11 deletions
20
locales/index.d.ts
vendored
20
locales/index.d.ts
vendored
|
@ -13129,6 +13129,26 @@ export interface Locale extends ILocale {
|
||||||
* Timeout in milliseconds for translation API requests.
|
* Timeout in milliseconds for translation API requests.
|
||||||
*/
|
*/
|
||||||
"translationTimeoutCaption": string;
|
"translationTimeoutCaption": string;
|
||||||
|
/**
|
||||||
|
* Following (Pub)
|
||||||
|
*/
|
||||||
|
"followingPub": string;
|
||||||
|
/**
|
||||||
|
* Followers (Sub)
|
||||||
|
*/
|
||||||
|
"followersSub": string;
|
||||||
|
/**
|
||||||
|
* Well-known resources
|
||||||
|
*/
|
||||||
|
"wellKnownResources": string;
|
||||||
|
/**
|
||||||
|
* Last posted: {at}
|
||||||
|
*/
|
||||||
|
"lastPosted": ParameterizedString<"at">;
|
||||||
|
/**
|
||||||
|
* Raw
|
||||||
|
*/
|
||||||
|
"raw": string;
|
||||||
}
|
}
|
||||||
declare const locales: {
|
declare const locales: {
|
||||||
[lang: string]: Locale;
|
[lang: string]: Locale;
|
||||||
|
|
|
@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex; flex-direction: column; gap: 1em;">
|
<div style="display: flex; flex-direction: column; gap: 1em;">
|
||||||
<MkKeyValue :copy="host" oneline>
|
<MkKeyValue :copy="host" oneline>
|
||||||
<template #key>Host</template>
|
<template #key>{{ i18n.ts.name }}</template>
|
||||||
<template #value><span class="_monospace"><MkLink :url="`https://${host}`">{{ host }}</MkLink></span></template>
|
<template #value><span class="_monospace"><MkLink :url="`https://${host}`">{{ host }}</MkLink></span></template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<MkKeyValue oneline>
|
<MkKeyValue oneline>
|
||||||
|
@ -34,7 +34,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
|
|
||||||
<FormSection v-if="iAmModerator">
|
<FormSection v-if="iAmModerator">
|
||||||
<template #label>Moderation</template>
|
<template #label>{{ i18n.ts.moderation }}</template>
|
||||||
<div class="_gaps_s">
|
<div class="_gaps_s">
|
||||||
<MkKeyValue>
|
<MkKeyValue>
|
||||||
<template #key>
|
<template #key>
|
||||||
|
@ -83,17 +83,17 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<FormSection>
|
<FormSection>
|
||||||
<MkKeyValue oneline style="margin: 1em 0;">
|
<MkKeyValue oneline style="margin: 1em 0;">
|
||||||
<template #key>Following (Pub)</template>
|
<template #key>{{ i18n.ts.followingPub }}</template>
|
||||||
<template #value>{{ number(instance.followingCount) }}</template>
|
<template #value>{{ number(instance.followingCount) }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
<MkKeyValue oneline style="margin: 1em 0;">
|
<MkKeyValue oneline style="margin: 1em 0;">
|
||||||
<template #key>Followers (Sub)</template>
|
<template #key>{{ i18n.ts.followersSub }}</template>
|
||||||
<template #value>{{ number(instance.followersCount) }}</template>
|
<template #value>{{ number(instance.followersCount) }}</template>
|
||||||
</MkKeyValue>
|
</MkKeyValue>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection>
|
||||||
<template #label>Well-known resources</template>
|
<template #label>{{ i18n.ts.wellKnownResources }}</template>
|
||||||
<FormLink :to="`https://${host}/.well-known/host-meta`" external style="margin-bottom: 8px;">host-meta</FormLink>
|
<FormLink :to="`https://${host}/.well-known/host-meta`" external style="margin-bottom: 8px;">host-meta</FormLink>
|
||||||
<FormLink :to="`https://${host}/.well-known/host-meta.json`" external style="margin-bottom: 8px;">host-meta.json</FormLink>
|
<FormLink :to="`https://${host}/.well-known/host-meta.json`" external style="margin-bottom: 8px;">host-meta.json</FormLink>
|
||||||
<FormLink :to="`https://${host}/.well-known/nodeinfo`" external style="margin-bottom: 8px;">nodeinfo</FormLink>
|
<FormLink :to="`https://${host}/.well-known/nodeinfo`" external style="margin-bottom: 8px;">nodeinfo</FormLink>
|
||||||
|
@ -128,7 +128,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="tab === 'users'" class="_gaps_m">
|
<div v-else-if="tab === 'users'" class="_gaps_m">
|
||||||
<MkPagination v-slot="{items}" :pagination="usersPagination" style="display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); grid-gap: 12px;">
|
<MkPagination v-slot="{items}" :pagination="usersPagination" style="display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr)); grid-gap: 12px;">
|
||||||
<MkA v-for="user in items" :key="user.id" v-tooltip.mfm="`Last posted: ${dateString(user.updatedAt)}`" class="user" :to="`/admin/user/${user.id}`">
|
<MkA v-for="user in items" :key="user.id" v-tooltip.mfm="i18n.tsx.lastPosted({ at: dateString(user.updatedAt) })" class="user" :to="`/admin/user/${user.id}`">
|
||||||
<MkUserCardMini :user="user"/>
|
<MkUserCardMini :user="user"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</MkPagination>
|
</MkPagination>
|
||||||
|
@ -137,11 +137,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkPagination v-slot="{items}" :pagination="followingPagination">
|
<MkPagination v-slot="{items}" :pagination="followingPagination">
|
||||||
<div class="follow-relations-list">
|
<div class="follow-relations-list">
|
||||||
<div v-for="followRelationship in items" :key="followRelationship.id" class="follow-relation">
|
<div v-for="followRelationship in items" :key="followRelationship.id" class="follow-relation">
|
||||||
<MkA v-tooltip.mfm="`Last posted: ${dateString(followRelationship.followee.updatedAt)}`" :to="`/admin/user/${followRelationship.followee.id}`" class="user">
|
<MkA v-tooltip.mfm="i18n.tsx.lastPosted({ at: dateString(followRelationship.followee.updatedAt) })" :to="`/admin/user/${followRelationship.followee.id}`" class="user">
|
||||||
<MkUserCardMini :user="followRelationship.followee" :withChart="false"/>
|
<MkUserCardMini :user="followRelationship.followee" :withChart="false"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
<span class="arrow">→</span>
|
<span class="arrow">→</span>
|
||||||
<MkA v-tooltip.mfm="`Last posted: ${dateString(followRelationship.follower.updatedAt)}`" :to="`/admin/user/${followRelationship.follower.id}`" class="user">
|
<MkA v-tooltip.mfm="i18n.tsx.lastPosted({ at: dateString(followRelationship.follower.updatedAt) })" :to="`/admin/user/${followRelationship.follower.id}`" class="user">
|
||||||
<MkUserCardMini :user="followRelationship.follower" :withChart="false"/>
|
<MkUserCardMini :user="followRelationship.follower" :withChart="false"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</div>
|
</div>
|
||||||
|
@ -152,11 +152,11 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkPagination v-slot="{items}" :pagination="followersPagination">
|
<MkPagination v-slot="{items}" :pagination="followersPagination">
|
||||||
<div class="follow-relations-list">
|
<div class="follow-relations-list">
|
||||||
<div v-for="followRelationship in items" :key="followRelationship.id" class="follow-relation">
|
<div v-for="followRelationship in items" :key="followRelationship.id" class="follow-relation">
|
||||||
<MkA v-tooltip.mfm="`Last posted: ${dateString(followRelationship.followee.updatedAt)}`" :to="`/admin/user/${followRelationship.followee.id}`" class="user">
|
<MkA v-tooltip.mfm="i18n.tsx.lastPosted({ at: dateString(followRelationship.followee.updatedAt) })" :to="`/admin/user/${followRelationship.followee.id}`" class="user">
|
||||||
<MkUserCardMini :user="followRelationship.followee" :withChart="false"/>
|
<MkUserCardMini :user="followRelationship.followee" :withChart="false"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
<span class="arrow">←</span>
|
<span class="arrow">←</span>
|
||||||
<MkA v-tooltip.mfm="`Last posted: ${dateString(followRelationship.follower.updatedAt)}`" :to="`/admin/user/${followRelationship.follower.id}`" class="user">
|
<MkA v-tooltip.mfm="i18n.tsx.lastPosted({ at: dateString(followRelationship.follower.updatedAt) })" :to="`/admin/user/${followRelationship.follower.id}`" class="user">
|
||||||
<MkUserCardMini :user="followRelationship.follower" :withChart="false"/>
|
<MkUserCardMini :user="followRelationship.follower" :withChart="false"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
</div>
|
</div>
|
||||||
|
@ -440,7 +440,7 @@ const headerTabs = computed(() => [{
|
||||||
icon: 'ti ti-users',
|
icon: 'ti ti-users',
|
||||||
}, ...getFollowingTabs(), {
|
}, ...getFollowingTabs(), {
|
||||||
key: 'raw',
|
key: 'raw',
|
||||||
title: 'Raw',
|
title: i18n.ts.raw,
|
||||||
icon: 'ti ti-code',
|
icon: 'ti ti-code',
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
|
|
@ -589,3 +589,9 @@ roleAutomatic: "automatic"
|
||||||
|
|
||||||
translationTimeoutLabel: "Translation timeout"
|
translationTimeoutLabel: "Translation timeout"
|
||||||
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
|
translationTimeoutCaption: "Timeout in milliseconds for translation API requests."
|
||||||
|
|
||||||
|
followingPub: "Following (Pub)"
|
||||||
|
followersSub: "Followers (Sub)"
|
||||||
|
wellKnownResources: "Well-known resources"
|
||||||
|
lastPosted: "Last posted: {at}"
|
||||||
|
raw: 'Raw'
|
||||||
|
|
Loading…
Add table
Reference in a new issue