+ {image &&
+
+
+
+
+
}
+ {image && !source ? 
setResult((current) => current?.generation === generation ? { generation, image: null } : current)} />
: children}
+ {!image && {allowed && result?.generation !== generation ? t("Rendering diagram…") : complete ? t("Diagram unavailable. Source is shown.") : t("The diagram will appear when this block is complete.")}
}
+ {image && expanded === key && setExpanded(null)} />}
+ ;
+}
diff --git a/src/lib/i18n.ja.ts b/src/lib/i18n.ja.ts
index a3ac013e53..f0c8b93802 100644
--- a/src/lib/i18n.ja.ts
+++ b/src/lib/i18n.ja.ts
@@ -934,4 +934,15 @@ export const JA: Record