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

@@ -9,6 +9,7 @@
import EmptyState from "#lib/components/ui/EmptyState.svelte";
import Icon from "#lib/components/ui/Icon.svelte";
import Spinner from "#lib/components/ui/Spinner.svelte";
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";
@@ -109,9 +110,9 @@
backfilling = true;
try {
await enqueueStoriesBackfill(id);
toasts.success("Загружаем старые сторис");
toasts.success(t("stories.backfillStarted"));
} catch {
toasts.error("Не удалось запустить загрузку сторис");
toasts.error(t("stories.backfillFailed"));
} finally {
backfilling = false;
}
@@ -127,7 +128,7 @@
</script>
{#if peerId === null}
<EmptyState description="Откройте чат" title="Сторис" />
<EmptyState description={t("stories.openChat")} title={t("stories.title")} />
{:else}
<div class="toolbar">
<Button
@@ -137,10 +138,10 @@
smaller
variant="secondary"
>
<Icon name="cloud-download" />Загрузить старые
<Icon name="cloud-download" />{t("stories.loadOlder")}
</Button>
<Button
aria-label="Обновить"
aria-label={t("ui.refresh")}
onclick={() => peerId !== null && reload(peerId).catch(() => undefined)}
round
smaller
@@ -155,8 +156,8 @@
<div class="center"><Spinner /></div>
{:else}
<EmptyState
description="Нажмите «Загрузить старые», чтобы забрать архив"
title="Нет сторис"
description={t("stories.emptyHint")}
title={t("stories.empty")}
/>
{/if}
{:else}
@@ -177,7 +178,7 @@
onclick={() => peerId !== null && loadMore(peerId)}
type="button"
>
{loading ? "Загрузка…" : "Показать ещё"}
{loading ? t("ui.loading") : t("ui.showMore")}
</button>
{/if}