{#if variant === "tab"}{/if}

{$t("Browser engine")}

{#if phase === "installed"}

{$t("Version {version} is installed.", { version: status?.version ?? "" })}

{:else if phase === "development"}

{$t("This development build uses the engine in src-tauri/browser-engine.")}

{:else if phase === "unavailable"}

{$t("No browser engine is available for this platform yet.")}

{:else if phase === "downloading"}

{$t("Downloading the browser engine: {received} of {total}.", { received: megabytes(status?.received ?? 0), total: megabytes(status?.bytes ?? 0) })}

{:else if phase === "installing"}

{$t("Installing the browser engine…")}

{:else if phase === "update"}

{$t("This RuneStone version needs browser engine {version}. The download is {size}.", { version: status?.version ?? "", size: megabytes(status?.bytes ?? 0) })}

{:else}

{$t("The built-in browser needs its engine. The engine is a separate download of {size}.", { size: megabytes(status?.bytes ?? 0) })}

{/if} {#if error && !busy}{/if}
{#if busy} {:else if phase === "missing" || phase === "update"} {:else if phase === "installed" && variant === "settings"} {/if} {#if web}{/if}