feat(frontend): storage, trash, policy, stories, shares, jobs, bots, media, login and notes speak russian and english

This commit is contained in:
hh committed 2026-10-19 03:53:08 +00:00
1 parent e5a5edcaae
commit 4a5c92f0e9
51 files changed
+1504 -588

No files matched your search

@@ -16,6 +16,7 @@
import Icon from "#lib/components/ui/Icon.svelte";
import Spinner from "#lib/components/ui/Spinner.svelte";
import { peerName } from "#lib/format/peer.js";
import { t } from "#lib/i18n/locale.svelte.js";
import { poster } from "#lib/media/poster.js";
import { accounts } from "#lib/stores/accounts.svelte.js";
import { toasts } from "#lib/stores/toasts.svelte.js";
@@ -89,7 +90,7 @@
return {
hasAvatar: Boolean(chat?.has_avatar),
kind: "chat" as const,
name: chat?.title ?? `Chat ${peerId}`,
name: chat?.title ?? t("ui.chat", { id: peerId }),
peerId,
stories: peerStories,
};
@@ -150,9 +151,9 @@
backfilling = peerId;
try {
await enqueueStoriesBackfill(peerId);
toasts.success("Загружаем старые сторис");
toasts.success(t("stories.backfillStarted"));
} catch {
toasts.error("Не удалось запустить загрузку сторис");
toasts.error(t("stories.backfillFailed"));
} finally {
backfilling = null;
}
@@ -174,7 +175,7 @@
{#if loading}
<div class="center"><Spinner /></div>
{:else}
<EmptyState title="Нет сторис" />
<EmptyState title={t("stories.empty")} />
{/if}
{:else}
{#each groups as group (group.peerId)}
@@ -200,7 +201,7 @@
</span>
</button>
<Button
aria-label="Загрузить старые сторис"
aria-label={t("stories.loadOlderStories")}
loading={backfilling === group.peerId}
onclick={() => backfill(group.peerId)}
round