diff --git a/web/src/lib/components/DownloadButton.svelte b/web/src/lib/components/DownloadButton.svelte index c452846..62836f9 100644 --- a/web/src/lib/components/DownloadButton.svelte +++ b/web/src/lib/components/DownloadButton.svelte @@ -3,6 +3,7 @@ import { downloadBlob, encode } from '$lib/core/io'; import type { PixelImage } from '$lib/core/types'; import type { OutputFormat } from '$lib/registry'; + import { t } from '$lib/i18n/t'; interface Props { image: PixelImage | null; @@ -38,8 +39,8 @@ fullWidth disabled={!image || !format} {busy} - busyText="Готовим файл…" + busyText={t('download.busy')} onclick={download} > - Скачать .{format?.ext ?? 'png'} + {t('download.file', { ext: format?.ext ?? 'png' })} diff --git a/web/src/lib/components/DropOverlay.svelte b/web/src/lib/components/DropOverlay.svelte index c146ec5..339e162 100644 --- a/web/src/lib/components/DropOverlay.svelte +++ b/web/src/lib/components/DropOverlay.svelte @@ -1,6 +1,7 @@
- {TOOLS.length} утилит для работы с PNG. Все операции выполняются локально в браузере. -
+{t('catalog.lead', { count: TOOLS.length })}
{#each CATEGORIES as category (category.id)} {@const categoryTools = TOOLS.filter((tool) => tool.category === category.id)} {#if categoryTools.length > 0}