multi-model · Opus-MT IT→ES (112.69 MB q8 · Apache-2.0) → mBERT 201-Language Auditor (25.84 MB q8 · MIT)

IT → ES Translation × 201-Language Shift & Leak Auditor

Stage 1 (Xenova/opus-mt-it-es, 112.69 MB WASM q8, Apache-2.0) translates Italian prose directly into Spanish. Because Italian and Spanish share ~82% lexical similarity, Stage 2 (onnx-community/language_detection-ONNX, 25.84 MB WASM q8, MIT, reusing ../mbert-language-detection/worker.js) scores both input and output across 201 FLORES-200 languages to confirm ita_Latn → spa_Latn shift and flag untranslated Italian leaks (~138.5 MB combined, 100% offline).

1 · Two Independent On-Device Models (138.53 MB Combined)

Decoupled 2-stage architecture: Both workers manage independent Cache Storage auto-init, Release from memory, and Clear cache lifecycles. Stage 2 reuses ../mbert-language-detection/worker.js with zero duplicate weights and stays under a 150 MB Tier-1 download budget.

Stage 1 · Opus-MT IT→ES (112.69 MB WASM q8 · Apache-2.0)

Stage 2 · mBERT 201-Language Auditor (25.84 MB WASM q8 · MIT)

Prepare both Stage 1 (Opus-MT IT→ES) and Stage 2 (mBERT 201-Language Auditor) above to run live language-shift audits.

2 · Cross-Lingual Handoff & FLORES-200 Language-Shift Telemetry

Language-Shift Verdict: Run both stages above to measure ita_Latn → spa_Latn probability shift and residual Italian leaks.
Source ita_Latn–
Target spa_Latn–
Italian leak prob–
spa_Latn gain–
Stage 1 / Stage 2 ms–
Audit verdict · NaN–

Stage 1 · Spanish Translation Output

—
Esperando la Etapa 1 (IT→ES)…

Stage 2 · Spanish Shift Confidence Meter

—

Waiting for Stage 2 FLORES-200 classification of both source Italian and translated Spanish.

Stage 2 · Source Input Top-5 FLORES-200 Languages

Run Stage 2 to inspect source language distribution.

Stage 2 · Translated Output Top-5 FLORES-200 Languages

Run Stage 2 to inspect translated Spanish distribution & residual Italian leak.

3 · Inspect Multi-Model Client & FLORES-200 Leak Auditor

Show the code — Lifecycle-safe Stage 2 client reusing ../mbert-language-detection/worker.js
Show the code — ita_Latn → spa_Latn shift & untranslated Italian leak evaluator