mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: QA sweep - tool routes, security, i18n, a11y, + AI bundle install hardening (#393)
* fix(api): correct format/filename/container handling across tool routes Found during a comprehensive QA sweep exercising every tool against its full accepted-format matrix: - watermark-image, compose: preserve the requested output format and a matching download filename/extension instead of always emitting the source format - compose: crop oversized overlays to the visible base area instead of crashing Sharp's composite, and reject only overlays fully outside the base image instead of any oversized one - compare, vectorize: switch to the shared image input handler so filenames and formats like .svgz/.tga/RAW survive validation instead of being rejected pre-processing - tool-factory, images-to-video: normalize frames through Sharp before handing them to FFmpeg, fixing GIF/AVIF/RAW image-to-video jobs that previously failed or hung - media-tool, replace-audio, embed-subtitles: fix legacy container MIME/codec handling for MPEG sources and subtitle remux cases - files: expand download MIME mapping for text/data/document/video/audio outputs that were falling back to a generic content type - convert-document/presentation/spreadsheet: same-format conversions now return the original validated file instead of erroring or producing corrupt tiny output Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(web): dropzone a11y, stale localStorage getter, dead code - dropzone: stop making the whole drop-zone section clickable/focusable. A section acting as an interactive element around a real upload button is a nested-interactive-element anti-pattern that confuses screen readers; drag-and-drop doesn't need focus semantics, only the button fallback does. Keeps that button semantic and keyboard-reachable. Updates the two e2e call sites that clicked the section directly. - api, use-auth: read through window.localStorage via the existing API storage helper instead of the bare global, which resolves to Node's experimental localStorage getter under Vitest and threw - find-duplicates-settings, info-settings, login-page: remove dead code (unused zip-download handler, a stale mount-only effect dependency that left cached info stuck at reused indices, an unused response variable) Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(i18n): pt-BR, zh-CN, zh-TW were silently falling back to English The locale loader looked up dynamic-import exports by the raw locale code (mod["pt-BR"], mod["zh-CN"], mod["zh-TW"]), but those three modules export camelCased bindings (ptBR, zhCN, zhTW) since identifiers can't contain hyphens. The lookup returned undefined and every consumer silently fell back to English for these three locales. Replaces the generic lookup with explicit per-locale loaders so the mapping can't drift out of sync again. Also updates the dropzone helper copy across all 21 locales to match the drag-only dropzone wording from the previous commit. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(docs): clear build warnings in the VitePress site - config.mts: add an onwarn handler for the @vueuse INVALID_ANNOTATION warnings emitted during the docs build - deployment.md: the caddyfile code fence language isn't a shiki grammar VitePress ships with, so it warned on every build; use txt instead Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * test(qa): update QA harness for the drag-only dropzone and regen metadata - api-sweep, qa-helpers, verify-ai: add JSON-body tools, multi-input secondary fixtures, async polling for slow valid jobs, 501 FEATURE_NOT_INSTALLED skip handling, and safer per-tool settings - input-preview, pipeline-ui specs: update upload flow for the drag-only dropzone surface - add tests/fixtures/data/valid/chart.json, a valid chart fixture the updated helpers route to - regenerate tools-meta.json against current TOOLS[] Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(security): close a login timing side-channel, harden zip-slip tests Found during a black-box security sweep of the real auth-enabled production container: a nonexistent username returned 401 in ~3-10ms, while a wrong password for a real user took ~35-42ms, because scrypt verification only ran when a user row existed. That timing gap lets an attacker enumerate valid usernames without ever guessing a password. Now runs verification against a cached dummy hash on the unknown-user path too, so both cases cost the same regardless of outcome. extract-zip already had a relative-traversal regression test (../evil.txt), but its absolute-path rejection branches (name.startsWith("/") / startsWith("\\")) had none. Added the three missing cases: deep relative traversal, absolute Unix path, and Windows-style absolute path. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * test(qa): add UI-driven AI bundle install scripts QA_PROMPT.md's Phase 2 requires installing AI models the way a user does -- through the UI, on demand from HuggingFace -- and treats the curl-based admin install endpoint as fallback-only. Nothing in the harness actually drove that flow; tests/qa/seed-ai-models.sh installs via docker exec + pip, which is further from a real user than even the API fallback. install-ai-bundles-ui.mts logs in, opens Settings > AI Features, screenshots the pre-install state, clicks Install All, and screenshots progress -- then exits, since installs continue server-side once triggered. verify-ai-install-complete.mts polls bundle status, screenshots the completed state, and runs one real tool per installed bundle to prove the freshly-downloaded model actually executes. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(qa): correct the apiToolPath import in the AI verify script Dynamic import of the package name failed under tsx's module resolution from apps/api's node_modules context; use the same relative-path import api-sweep.mts already uses successfully. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(web): correct AI bundle size estimates shown before install Measured real downloads during GPU-node QA verification: photo-restoration pulls ~4.4GB (was advertised as 800MB-1GB, off by 4-5x) and ocr pulls ~5.5GB (was advertised as 3-4GB). Both estimates only accounted for model weights, not the pip dependencies (torch/paddle) that come down with them. Updated to reflect actual total download size, since that's what a user deciding whether they have the disk/bandwidth actually needs to know. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(web): make desktop Settings reachable when auth is disabled AvatarDropdown (the only desktop entry point to Settings) was gated behind `!isMobile && authEnabled`. With AUTH_ENABLED=false the synthetic anonymous admin user should have full Settings access per how auth.ts documents this mode -- and the mobile bottom nav already worked this way, showing Settings unconditionally. Desktop just had a stray extra gate the component doesn't need: AvatarDropdown already resolves its own username internally (falling back to "admin") and reads authEnabled itself where it actually matters (hiding the Logout button). Removed the outer gate; verified end-to-end against a fresh AUTH_ENABLED=false instance -- avatar now renders, Settings opens, shows the anonymous/Admin identity correctly. Also documents (not changes) a related finding in install_feature.py: detect_arch() always resolves amd64 hosts to the GPU-bundled archive variant regardless of actual GPU presence, since no CPU-only amd64 archive is published to the bundle repo yet. Left as a code comment rather than a behavior change, since requesting an unpublished archive key would hard-fail installs entirely -- worse than the current oversized-but-working download. Full detail in the QA report. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(ai): stop logging expected dispatcher reloads as crashes After each AI bundle install the Python dispatcher reloads because the venv changed, and after every app shutdown it's SIGTERMed. Both took the close handler's `code !== 0` branch (SIGTERM makes the exit code null), so they were counted as crashes -- producing an alarming "crash" line in the logs and a pointless ~1s recovery backoff after each of 7 installs. A `stopping` flag set in shutdown() lets the close handler tell an intentional stop apart from a real crash. The request-timeout kill path deliberately does not set it, so a genuinely hung script still records a crash and the 5-in-60s permanent-disable threshold is untouched. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(api): return a clean message when content-aware resize times out Carving a very high-resolution image down to a tiny target could exceed the caire subprocess timeout, and the raw error forwarded to the user was caire's terminal output -- ANSI color codes and progress-spinner control characters -- instead of anything actionable. Now: the timeout path throws a clear "timed out; try a smaller image or larger target" message (keeping the raw stderr as `cause` for server logs); friendlyError() strips ANSI/control chars centrally so any subprocess dump surfaced through the shared sanitizer is plain text; and the content-aware-resize route (a custom route that bypassed the sanitizer) now routes its error paths through friendlyError like every other tool. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(ai): stop bundle installs from exhausting host disk Installing an AI bundle on a tight-disk host could push the root filesystem to zero bytes free after the preflight check had already passed. Two root causes: - move_tree used copytree+rmtree, so during the move the extracted payload existed in both staging and the venv at once -- a full transient doubling on disk. Rewrote it to rename entries (a cheap metadata op on the same filesystem, no copy), falling back to a copy only across filesystems. - the preflight budget used the manifest's extractedSize verbatim, which is 0 for several archives, collapsing the estimate to just the compressed size. Added a conservative fallback (3x compressed) so a missing value can't under-reserve. Also added a real-on-disk re-check immediately before the first destructive venv write (measuring the actual extracted payload and whether the move needs extra space for a cross-filesystem copy), which also now covers the offline-import path that previously skipped the disk check entirely; wrapped the moves so an out-of-space failure returns a clean actionable error instead of a traceback; and made the disk check resolve the nearest existing ancestor so it never throws on a not-yet-created venv path. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * feat(web): show the real per-arch AI bundle download size The bundle cards and install prompt showed a hardcoded, architecture-blind estimatedSize string. That's misleading: amd64 hosts always pull the CUDA-inclusive archive (there's no CPU-only amd64 variant published), so a bundle labelled "1-2 GB" can actually download several times that, while arm64 pulls a much smaller archive for the same label. The manifest already carries the real per-arch compressedSize (and extractedSize where measured), so surface those: a new optional downloadBytes/installedBytes on FeatureBundleState, populated in getFeatureStates() for this host's arch (resolver mirrors install_feature.py detect_arch), shown by the UI when present with estimatedSize kept as the fallback label. Also nudged upscale-enhance's fallback string (4-5 -> 5-6 GB) to match its real compressed size, consistent with the earlier photo-restoration/ocr fixes. Fields are optional so demo/mock and existing tests stay compiling; the manifest's extractedSize is 0 for a few archives, which now surfaces as null rather than a bogus 0. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(web): move the AI install queue to the server so it survives tab close Installing multiple bundles could silently lose all but the first. The server rejected a concurrent install with 409, so the client worked around it by queueing the rest in browser-local state and only POSTing each once it saw the previous finish. A single POSTed install is durable (the installer child is detached from the request), but a queued one had zero server footprint -- close the tab mid-queue and those installs vanished with no error, while the UI still showed them "Queued". The client "mutex" didn't even serialize: the queued bundles' local waits all resolved at once and raced into concurrent POSTs that 409'd each other. Now the queue lives on the server (a small in-memory FIFO leaf module). The install endpoint enqueues instead of 409-ing and returns 202 {jobId, queued}; a pump starts the next bundle when the current one's child exits (and after an offline import releases the lock), all behind the existing venv + file locks, which are unchanged. The client just POSTs every bundle immediately and reflects the server-reported queued/installing status; Install All fires all POSTs and lets the server serialize them, keeping the one-shot retry-on-failure. Adds "queued" to FeatureStatus (the bundle card already rendered that state) and surfaces it from getFeatureStates. In-memory is deliberate: it matches the existing contract (survives a tab close, not a server restart, which already clears the lock on boot). Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG * fix(qa): don't log env-derived credentials in the AI-install script CodeQL flagged clear-text logging of sensitive information: the login status line interpolated the QA base URL and username (both read from the process environment) into a console.log. Replaced with a static message. QA helper only, but it's a real hygiene issue and cleared the high-severity code-scanning alert on the PR. Claude-Session: https://claude.ai/code/session_019fpSXhLGLXWwfyZY2tWhLG
This commit is contained in:
@@ -6,7 +6,7 @@ export interface FeatureBundleInfo {
|
||||
enablesTools: string[];
|
||||
}
|
||||
|
||||
export type FeatureStatus = "not_installed" | "installing" | "installed" | "error";
|
||||
export type FeatureStatus = "not_installed" | "queued" | "installing" | "installed" | "error";
|
||||
|
||||
export interface FeatureBundleState {
|
||||
id: string;
|
||||
@@ -15,6 +15,13 @@ export interface FeatureBundleState {
|
||||
status: FeatureStatus;
|
||||
installedVersion: string | null;
|
||||
estimatedSize: string;
|
||||
// Real download / on-disk sizes for THIS host's architecture, read from the
|
||||
// bundle manifest. amd64 hosts pull the CUDA-inclusive archive whether or not
|
||||
// a GPU is present, so these can be much larger than the coarse estimatedSize
|
||||
// label suggests. Optional/nullable: absent in native (non-Docker) mode and
|
||||
// when the manifest lacks the value (extractedSize is 0 for some archives).
|
||||
downloadBytes?: number | null;
|
||||
installedBytes?: number | null;
|
||||
enablesTools: string[];
|
||||
progress: { percent: number; stage: string } | null;
|
||||
error: string | null;
|
||||
@@ -52,21 +59,21 @@ export const FEATURE_BUNDLES: Record<string, FeatureBundleInfo> = {
|
||||
id: "upscale-enhance",
|
||||
name: "Upscale & Enhance",
|
||||
description: "AI upscaling, face enhancement, and noise removal",
|
||||
estimatedSize: "4-5 GB",
|
||||
estimatedSize: "5-6 GB",
|
||||
enablesTools: ["upscale", "enhance-faces", "noise-removal"],
|
||||
},
|
||||
"photo-restoration": {
|
||||
id: "photo-restoration",
|
||||
name: "Photo Restoration",
|
||||
description: "Restore old or damaged photos",
|
||||
estimatedSize: "800 MB - 1 GB",
|
||||
estimatedSize: "4-5 GB",
|
||||
enablesTools: ["restore-photo"],
|
||||
},
|
||||
ocr: {
|
||||
id: "ocr",
|
||||
name: "OCR",
|
||||
description: "Extract text from images",
|
||||
estimatedSize: "3-4 GB",
|
||||
estimatedSize: "5-6 GB",
|
||||
enablesTools: ["ocr", "ocr-pdf"],
|
||||
},
|
||||
transcription: {
|
||||
|
||||
@@ -3704,7 +3704,7 @@ export const ar: TranslationKeys = {
|
||||
urlFetchFailed: "تعذر جلب الصورة من الرابط",
|
||||
ariaLabel: "منطقة إسقاط الملفات",
|
||||
dropPrompt: "اسحب صورك هنا",
|
||||
browseOrPaste: "اضغط في أي مكان للتصفح، أو الصق من الحافظة",
|
||||
browseOrPaste: "استخدم زر التحميل، أو الصق من الحافظة",
|
||||
uploadButton: "رفع",
|
||||
defaultFormats: "PNG، JPG، WebP، HEIC، RAW، PSD، وأكثر من 65 صيغة",
|
||||
orSeparator: "أو",
|
||||
|
||||
@@ -3747,7 +3747,8 @@ export const de: TranslationKeys = {
|
||||
urlFetchFailed: "Bild konnte nicht von URL abgerufen werden",
|
||||
ariaLabel: "Datei-Ablagezone",
|
||||
dropPrompt: "Bilder hierher ziehen",
|
||||
browseOrPaste: "Klicken Sie zum Durchsuchen oder fügen Sie aus der Zwischenablage ein",
|
||||
browseOrPaste:
|
||||
"Verwenden Sie die Upload-Schaltfläche oder fügen Sie aus der Zwischenablage ein",
|
||||
uploadButton: "Hochladen",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD und 65+ Formate",
|
||||
orSeparator: "oder",
|
||||
|
||||
@@ -3674,7 +3674,7 @@ export const en = {
|
||||
urlFetchFailed: "Could not fetch file from URL",
|
||||
ariaLabel: "File drop zone",
|
||||
dropPrompt: "Drop your files here",
|
||||
browseOrPaste: "click anywhere to browse, or paste from clipboard",
|
||||
browseOrPaste: "use the upload button, or paste from clipboard",
|
||||
uploadButton: "Upload",
|
||||
defaultFormats: "Images, Videos, Audio, PDFs, Documents, and 150+ formats",
|
||||
orSeparator: "or",
|
||||
|
||||
@@ -3726,7 +3726,7 @@ export const es: TranslationKeys = {
|
||||
urlFetchFailed: "No se pudo obtener la imagen desde la URL",
|
||||
ariaLabel: "Zona de carga de archivos",
|
||||
dropPrompt: "Arrastra tus imágenes aquí",
|
||||
browseOrPaste: "haz clic en cualquier lugar para explorar, o pega desde el portapapeles",
|
||||
browseOrPaste: "usa el botón de subida o pega desde el portapapeles",
|
||||
uploadButton: "Subir",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD y más de 65 formatos",
|
||||
orSeparator: "o",
|
||||
|
||||
@@ -3751,7 +3751,7 @@ export const fr: TranslationKeys = {
|
||||
urlFetchFailed: "Impossible de récupérer l'image depuis l'URL",
|
||||
ariaLabel: "Zone de dépôt de fichiers",
|
||||
dropPrompt: "Déposez vos images ici",
|
||||
browseOrPaste: "cliquez n'importe où pour parcourir, ou collez depuis le presse-papiers",
|
||||
browseOrPaste: "utilisez le bouton d'import, ou collez depuis le presse-papiers",
|
||||
uploadButton: "Importer",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD et plus de 65 formats",
|
||||
orSeparator: "ou",
|
||||
|
||||
@@ -3534,7 +3534,7 @@ export const hi: TranslationKeys = {
|
||||
urlFetchFailed: "URL से इमेज नहीं ला सके",
|
||||
ariaLabel: "फाइल ड्रॉप ज़ोन",
|
||||
dropPrompt: "अपनी इमेज यहां खींचें",
|
||||
browseOrPaste: "ब्राउज़ करने के लिए कहीं भी क्लिक करें, या क्लिपबोर्ड से पेस्ट करें",
|
||||
browseOrPaste: "अपलोड बटन का उपयोग करें, या क्लिपबोर्ड से पेस्ट करें",
|
||||
uploadButton: "अपलोड",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD, और 65+ फॉर्मेट",
|
||||
orSeparator: "या",
|
||||
|
||||
@@ -3727,7 +3727,7 @@ export const id: TranslationKeys = {
|
||||
urlFetchFailed: "Tidak dapat mengambil gambar dari URL",
|
||||
ariaLabel: "Area seret file",
|
||||
dropPrompt: "Seret gambar Anda ke sini",
|
||||
browseOrPaste: "klik untuk menjelajah, atau tempel dari clipboard",
|
||||
browseOrPaste: "gunakan tombol unggah, atau tempel dari clipboard",
|
||||
uploadButton: "Unggah",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD, dan 65+ format",
|
||||
orSeparator: "atau",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import type { TranslationKeys } from "./en.js";
|
||||
import { en } from "./en.js";
|
||||
|
||||
export type { TranslationKeys } from "./en.js";
|
||||
@@ -34,11 +35,37 @@ export const SUPPORTED_LOCALES: SupportedLocale[] = [
|
||||
{ code: "th", name: "Thai", nativeName: "ไทย", dir: "ltr" },
|
||||
];
|
||||
|
||||
export async function loadTranslations(locale: string): Promise<import("./en.js").TranslationKeys> {
|
||||
type TranslationLoader = () => Promise<TranslationKeys>;
|
||||
|
||||
const TRANSLATION_LOADERS: Record<string, TranslationLoader> = {
|
||||
ar: async () => (await import("./ar.js")).ar,
|
||||
de: async () => (await import("./de.js")).de,
|
||||
es: async () => (await import("./es.js")).es,
|
||||
fr: async () => (await import("./fr.js")).fr,
|
||||
hi: async () => (await import("./hi.js")).hi,
|
||||
id: async () => (await import("./id.js")).id,
|
||||
it: async () => (await import("./it.js")).it,
|
||||
ja: async () => (await import("./ja.js")).ja,
|
||||
ko: async () => (await import("./ko.js")).ko,
|
||||
nl: async () => (await import("./nl.js")).nl,
|
||||
pl: async () => (await import("./pl.js")).pl,
|
||||
"pt-BR": async () => (await import("./pt-BR.js")).ptBR,
|
||||
ru: async () => (await import("./ru.js")).ru,
|
||||
sv: async () => (await import("./sv.js")).sv,
|
||||
th: async () => (await import("./th.js")).th,
|
||||
tr: async () => (await import("./tr.js")).tr,
|
||||
uk: async () => (await import("./uk.js")).uk,
|
||||
vi: async () => (await import("./vi.js")).vi,
|
||||
"zh-CN": async () => (await import("./zh-CN.js")).zhCN,
|
||||
"zh-TW": async () => (await import("./zh-TW.js")).zhTW,
|
||||
};
|
||||
|
||||
export async function loadTranslations(locale: string): Promise<TranslationKeys> {
|
||||
if (locale === "en") return en;
|
||||
const loadTranslation = TRANSLATION_LOADERS[locale];
|
||||
if (!loadTranslation) return en;
|
||||
try {
|
||||
const mod = await import(`./${locale}.js`);
|
||||
return mod[locale] ?? mod.default ?? en;
|
||||
return await loadTranslation();
|
||||
} catch {
|
||||
return en;
|
||||
}
|
||||
|
||||
@@ -3740,7 +3740,7 @@ export const it: TranslationKeys = {
|
||||
urlFetchFailed: "Impossibile recuperare l'immagine dall'URL",
|
||||
ariaLabel: "Area di rilascio file",
|
||||
dropPrompt: "Trascina le tue immagini qui",
|
||||
browseOrPaste: "fai clic ovunque per sfogliare, oppure incolla dagli appunti",
|
||||
browseOrPaste: "usa il pulsante di caricamento oppure incolla dagli appunti",
|
||||
uploadButton: "Carica",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD e oltre 65 formati",
|
||||
orSeparator: "o",
|
||||
|
||||
@@ -3677,7 +3677,7 @@ export const ja: TranslationKeys = {
|
||||
urlFetchFailed: "URLから画像を取得できませんでした",
|
||||
ariaLabel: "ファイルドロップゾーン",
|
||||
dropPrompt: "ここに画像をドロップ",
|
||||
browseOrPaste: "クリックでファイルを参照、またはクリップボードから貼り付け",
|
||||
browseOrPaste: "アップロードボタンを使用するか、クリップボードから貼り付け",
|
||||
uploadButton: "アップロード",
|
||||
defaultFormats: "PNG、JPG、WebP、HEIC、RAW、PSD、65以上のフォーマット",
|
||||
orSeparator: "または",
|
||||
|
||||
@@ -3659,7 +3659,7 @@ export const ko: TranslationKeys = {
|
||||
urlFetchFailed: "URL에서 이미지를 가져올 수 없습니다",
|
||||
ariaLabel: "파일 드롭 영역",
|
||||
dropPrompt: "여기에 이미지를 드롭하세요",
|
||||
browseOrPaste: "아무 곳이나 클릭하여 파일 탐색, 또는 클립보드에서 붙여넣기",
|
||||
browseOrPaste: "업로드 버튼을 사용하거나 클립보드에서 붙여넣기",
|
||||
uploadButton: "업로드",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD 외 65가지 이상의 포맷",
|
||||
orSeparator: "또는",
|
||||
|
||||
@@ -3736,7 +3736,7 @@ export const nl: TranslationKeys = {
|
||||
urlFetchFailed: "Afbeelding kon niet worden opgehaald van URL",
|
||||
ariaLabel: "Bestand-dropzone",
|
||||
dropPrompt: "Sleep je afbeeldingen hierheen",
|
||||
browseOrPaste: "klik om te bladeren, of plak vanuit het klembord",
|
||||
browseOrPaste: "gebruik de uploadknop of plak vanuit het klembord",
|
||||
uploadButton: "Uploaden",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD en 65+ formaten",
|
||||
orSeparator: "of",
|
||||
|
||||
@@ -3742,7 +3742,7 @@ export const pl: TranslationKeys = {
|
||||
urlFetchFailed: "Nie udało się pobrać obrazu z URL",
|
||||
ariaLabel: "Strefa upuszczania plików",
|
||||
dropPrompt: "Przeciągnij tutaj swoje obrazy",
|
||||
browseOrPaste: "kliknij gdziekolwiek, aby przeglądać, lub wklej ze schowka",
|
||||
browseOrPaste: "użyj przycisku przesyłania lub wklej ze schowka",
|
||||
uploadButton: "Prześlij",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD i ponad 65 formatów",
|
||||
orSeparator: "lub",
|
||||
|
||||
@@ -3734,7 +3734,7 @@ export const ptBR: TranslationKeys = {
|
||||
urlFetchFailed: "Não foi possível obter a imagem da URL",
|
||||
ariaLabel: "Área de soltar arquivos",
|
||||
dropPrompt: "Arraste suas imagens aqui",
|
||||
browseOrPaste: "clique em qualquer lugar para navegar, ou cole da área de transferência",
|
||||
browseOrPaste: "use o botão de upload ou cole da área de transferência",
|
||||
uploadButton: "Enviar",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD e mais de 65 formatos",
|
||||
orSeparator: "ou",
|
||||
|
||||
@@ -3730,7 +3730,7 @@ export const ru: TranslationKeys = {
|
||||
urlFetchFailed: "Не удалось загрузить изображение по URL",
|
||||
ariaLabel: "Зона перетаскивания файлов",
|
||||
dropPrompt: "Перетащите изображения сюда",
|
||||
browseOrPaste: "нажмите в любом месте для выбора или вставьте из буфера обмена",
|
||||
browseOrPaste: "используйте кнопку загрузки или вставьте из буфера обмена",
|
||||
uploadButton: "Загрузить",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD и 65+ форматов",
|
||||
orSeparator: "или",
|
||||
|
||||
@@ -3724,7 +3724,7 @@ export const sv: TranslationKeys = {
|
||||
urlFetchFailed: "Kunde inte hämta bild från URL",
|
||||
ariaLabel: "Filsläppzon",
|
||||
dropPrompt: "Släpp dina bilder här",
|
||||
browseOrPaste: "klicka för att bläddra, eller klistra in från urklipp",
|
||||
browseOrPaste: "använd uppladdningsknappen eller klistra in från urklipp",
|
||||
uploadButton: "Ladda upp",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD och 65+ format",
|
||||
orSeparator: "eller",
|
||||
|
||||
@@ -3684,7 +3684,7 @@ export const th: TranslationKeys = {
|
||||
urlFetchFailed: "ไม่สามารถดึงภาพจาก URL",
|
||||
ariaLabel: "พื้นที่วางไฟล์",
|
||||
dropPrompt: "ลากภาพมาวางที่นี่",
|
||||
browseOrPaste: "คลิกเพื่อเรียกดูหรือวางจากคลิปบอร์ด",
|
||||
browseOrPaste: "ใช้ปุ่มอัปโหลดหรือวางจากคลิปบอร์ด",
|
||||
uploadButton: "อัปโหลด",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD และรูปแบบอื่นกว่า 65 รูปแบบ",
|
||||
orSeparator: "หรือ",
|
||||
|
||||
@@ -3734,7 +3734,7 @@ export const tr: TranslationKeys = {
|
||||
urlFetchFailed: "URL'den görüntü alınamadı",
|
||||
ariaLabel: "Dosya bırakma alanı",
|
||||
dropPrompt: "Görüntülerinizi buraya bırakın",
|
||||
browseOrPaste: "göz atmak için herhangi bir yere tıklayın veya panodan yapıştırın",
|
||||
browseOrPaste: "yükleme düğmesini kullanın veya panodan yapıştırın",
|
||||
uploadButton: "Yükle",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD ve 65+ biçim",
|
||||
orSeparator: "veya",
|
||||
|
||||
@@ -3731,7 +3731,7 @@ export const uk: TranslationKeys = {
|
||||
urlFetchFailed: "Не вдалося завантажити зображення за URL",
|
||||
ariaLabel: "Зона перетягування файлів",
|
||||
dropPrompt: "Перетягніть зображення сюди",
|
||||
browseOrPaste: "натисніть будь-де для вибору або вставте з буфера обміну",
|
||||
browseOrPaste: "скористайтеся кнопкою завантаження або вставте з буфера обміну",
|
||||
uploadButton: "Завантажити",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD та 65+ форматів",
|
||||
orSeparator: "або",
|
||||
|
||||
@@ -3724,7 +3724,7 @@ export const vi: TranslationKeys = {
|
||||
urlFetchFailed: "Không thể tải ảnh từ URL",
|
||||
ariaLabel: "Vùng thả tệp",
|
||||
dropPrompt: "Kéo thả hình ảnh vào đây",
|
||||
browseOrPaste: "nhấp để duyệt hoặc dán từ bộ nhớ tạm",
|
||||
browseOrPaste: "dùng nút tải lên hoặc dán từ bộ nhớ tạm",
|
||||
uploadButton: "Tải lên",
|
||||
defaultFormats: "PNG, JPG, WebP, HEIC, RAW, PSD và hơn 65 định dạng",
|
||||
orSeparator: "hoặc",
|
||||
|
||||
@@ -3469,7 +3469,7 @@ export const zhCN: TranslationKeys = {
|
||||
urlFetchFailed: "无法从 URL 获取图片",
|
||||
ariaLabel: "文件拖放区域",
|
||||
dropPrompt: "将图片拖放到此处",
|
||||
browseOrPaste: "点击任意位置浏览,或从剪贴板粘贴",
|
||||
browseOrPaste: "使用上传按钮,或从剪贴板粘贴",
|
||||
uploadButton: "上传",
|
||||
defaultFormats: "PNG、JPG、WebP、HEIC、RAW、PSD 及 65+ 种格式",
|
||||
orSeparator: "或",
|
||||
|
||||
@@ -3468,7 +3468,7 @@ export const zhTW: TranslationKeys = {
|
||||
urlFetchFailed: "無法從URL取得影像",
|
||||
ariaLabel: "檔案拖放區域",
|
||||
dropPrompt: "將影像拖放到此處",
|
||||
browseOrPaste: "點擊任意位置瀏覽檔案,或從剪貼簿貼上",
|
||||
browseOrPaste: "使用上傳按鈕,或從剪貼簿貼上",
|
||||
uploadButton: "上傳",
|
||||
defaultFormats: "PNG、JPG、WebP、HEIC、RAW、PSD及65+種格式",
|
||||
orSeparator: "或",
|
||||
|
||||
Reference in New Issue
Block a user