Aegisub automation

Translate subtitles inside Aegisub

A free automation script for Aegisub that translates the selected lines, or the whole script, with AI — without leaving the editor. Override tags, \N breaks, styles and timing stay exactly as they were, and the original can be kept as a comment above each translated line for review.

Version 1.0.0 · Last updated: 2026-06-11

Download sublingo-translate.luaAegisub 3.2+ · Windows, macOS, Linux · 2,000 lines/day free
01

Download

Get sublingo-translate.lua (one file, about 14 KB, plain Lua you can read).

02

Copy to autoload

Put it in Aegisub's automation/autoload folder and restart Aegisub.

03

Run it

Automation → SubLingo: Translate subtitles. Pick a language, the lines and the output.

04

Review

Translations land in the grid with tags and timing intact. Ctrl+Z undoes the whole run.

Key facts

  • Scope: the selected lines or every dialogue line; comments, empty lines and drawings ({\p1}) are skipped.
  • Output: replace and keep the original as a comment (default), replace, or bilingual with original or translation on top.
  • Tags such as {\i1}, {\pos} and karaoke timing are protected; \N breaks are kept.
  • Names and terms list keeps character names and attack names the same in every episode.
  • Source language is detected automatically; 30 target languages in the menu, or type any other.
  • Free: 2,000 lines a day. Credits ($5 for 10,000 lines) use a stronger model.

Prefer the browser?

The same translation runs on the website without installing anything: the anime subtitle translator takes a whole .ass file, and the batch translator turns one file into several languages at once.

Aegisub plugin: questions

How do I install the plugin in Aegisub?+

Download sublingo-translate.lua and copy it into Aegisub's automation/autoload folder: %APPDATA%\Aegisub\automation\autoload on Windows, ~/Library/Application Support/Aegisub/automation/autoload on macOS, or ~/.aegisub/automation/autoload on Linux. Restart Aegisub, or use Automation → Automation… → Rescan Autoload Dir. The script then appears in the Automation menu as "SubLingo: Translate subtitles".

Does it break override tags like {\i1}, {\pos} or karaoke?+

No. Tags are swapped for placeholders before the text goes to the model and restored afterwards, so {\i1}, {\an8}, {\pos(x,y)}, colours and karaoke tags stay where they were. \N line breaks are kept, and drawing lines ({\p1}), comments and empty lines are skipped. Timing and styles are never touched.

Can I keep the original line?+

Yes. The default output, "Replace text, keep original as comment", turns each original line into a comment right above its translation, so a translator or editor can check every line against the source. You can also replace the text outright, or write both languages into one line (original on top or translation on top) for a bilingual release.

How do I keep character names and terms consistent?+

The dialog has a Names and terms box. Write one term per line, for example "Ryouiki Tenkai = Domain Expansion"; a term with nothing after the = is kept as it is. The list is saved with your Aegisub settings, so every episode uses the same names. Up to 20 terms are free and 200 with credits.

Is it free? What does it cost?+

2,000 lines a day are free with no account, which covers a film or 5–6 anime episodes. For more, a one-time $5 pack adds 10,000 lines and switches to a stronger model; paste the credit key into the plugin's dialog. No subscription.

What gets sent where?+

Only the dialogue text of the lines you choose is sent to sublingo.cc, which translates it with an AI model and sends it back; the script file is not uploaded and nothing is stored. The plugin uses curl, which is built into Windows 10 and later, macOS and most Linux distributions.

Is machine translation good enough for a fansub?+

It is a fast first draft, not a final release. Use it to get every line translated in a minute, then edit in Aegisub as usual — keeping the original as a comment makes that review quicker. Check jokes, honorifics and songs by hand.