{#if info.state === "running"}
{#each info.pipeline as pipeline}
{/each}
{/if}
{#if info.state === "done"}
{formatFileSize(info.resultFile?.file?.size)}
{/if}
{#if info.state === "error"}
{info.errorCode}
{/if}
{#if info.state === "running"}
{#if info.pipeline.length > 1}
{(info.completedWorkers?.length || 0) + 1}/{info.pipeline.length}
{/if}
{#if runningWorker && progress && progress.percentage}
{$t(`queue.state.running.${runningWorker.type}`)}: {Math.ceil(
progress.percentage
)}%, {size}
{:else if runningWorker && progress && size}
{$t(`queue.state.running.${runningWorker.type}`)}: {size}
{:else}
{$t("queue.state.starting")}
{/if}
{/if}
{#if info.state === "waiting"}
{$t("queue.state.waiting")}
{/if}