Practical · cinema .SRT · support .CSV · business .TXT · batch translation · Apache-2.0

Local French Batch Translator: Documents, CSV & .SRT Subtitles

Drop a French .srt subtitle track, a support-ticket .csv export or a business .txt letter. Cue numbers and timestamps, ticket IDs and paragraph breaks stay verbatim while Xenova/opus-mt-fr-en (107.47 MB WASM q8, Apache-2.0) translates every French line off the main thread — then export ready-to-use .srt, .txt, formula-safe RFC 4180 .csv or .json.

1. Choose a Document & Translate the Batch

Grounded preset:

…or drag a French file onto this box. Files are read with FileReader and never uploaded.

Published French uses the typographic apostrophe (l’avocat). This model's tokenizer has no ’ piece and maps it to id 2 (the , piece), so Normalise ’ → ' rewrites it to ' before inference (source text in tables and exports stays verbatim).

Items translated–
Total latency–
Throughput–
In / Out tokens–
NaN check–

2. Side-by-Side Translated Output

Batch translation results preserving timestamps, CSV columns or paragraph positions alongside French source and English output
Cue Timestamp French Source English Translation
Initialise OPUS-MT FR→EN above to translate the batch.

3. Inspect the Parsers, Formula-Safe CSV & Batch Worker

Show the code — opus-fr-core.mjs parseSrt(): lossless cue & timestamp parser
Show the code — opus-fr-core.mjs csvCell(): RFC 4180 quoting + spreadsheet formula neutralisation
Show the code — worker.js translateBatch(): sequential off-thread batch with cancel flag & epoch guards