mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-09-15 05:56:36 +00:00
fix: update i18n - text verdicts from analyze tools
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
import { decodeFile, encode } from "$lib/core/io";
|
||||
import type { PixelImage } from "$lib/core/types";
|
||||
import { execute } from "$lib/executor";
|
||||
import { toolDescription, toolTitle } from "$lib/i18n/schema-tool-strings";
|
||||
import {
|
||||
toolDescription,
|
||||
toolTitle,
|
||||
verdictText,
|
||||
} from "$lib/i18n/schema-tool-strings";
|
||||
import { t } from "$lib/i18n/t";
|
||||
import type { FileResult, ToolEntry } from "$lib/registry";
|
||||
import {
|
||||
@@ -120,8 +124,10 @@
|
||||
|
||||
async function copyText() {
|
||||
if (!textResult) return;
|
||||
const copyValue =
|
||||
resultKind === "verdict" ? verdictText(tool.id, textResult) : textResult;
|
||||
try {
|
||||
await navigator.clipboard.writeText(textResult);
|
||||
await navigator.clipboard.writeText(copyValue);
|
||||
} catch (e) {
|
||||
error = errorText(e);
|
||||
}
|
||||
@@ -178,6 +184,7 @@
|
||||
|
||||
<section class="panel">
|
||||
<SchemaPreview
|
||||
toolId={tool.id}
|
||||
{source}
|
||||
{result}
|
||||
{fileResult}
|
||||
|
||||
Reference in New Issue
Block a user