App
rockbenben / subtitle-translator
Translate a whole season of subtitles in one pass — .srt/.ass/.vtt/.lrc, 120+ languages, 27 LLM providers, timing untouched | 整季字幕一次译完,时轴不动,支持 120+ 语言
This connects Repowise to rockbenben/subtitle-translator's code. It does not install subtitle-translator.
Repowise maps public repos from their source. Not affiliated with rockbenben. What is Repowise?
What is subtitle-translator?
subtitle-translator is a browser-based batch tool for translating subtitle files, including .srt, .ass, .vtt and .lrc files, so a whole season can be translated in one pass. It strips the timing out of each file locally and sends only the dialogue text to the translation engine, so the timeline is never changed. The project is written mainly in TypeScript and built with Next.js. Its code health is 5.8 out of 10 (Fair), ranked #225 of 4,000+ indexed repos. The last commit to subtitle-translator was on Nov 17, 2026, and 9 people have contributed.
As of commit 7ba3497, indexed Nov 20, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentssubtitle-translator.md
Repo facts: type, license, health, rank, contributors
| Type | App |
|---|---|
| License | MIT |
| Code health | 5.8 / 10 (Fair) |
| Health rank | #225 of 4,000+ indexed repos |
| Last commit | Nov 17, 2026 |
| Contributors | 9 |
| Bus factor | 1 |
| Size | 149 files, 14,165 lines |
Explore subtitle-translator
- DocumentationModule-by-module documentation, 162 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Ask about this code in your agent
This connects Repowise to subtitle-translator's code. It does not install subtitle-translator.
Useful if you want to change or fork subtitle-translator: your agent can ask how it is put together and get answers that cite its files.
Ask about subtitle-translator
Answers come from subtitle-translator's README and source, with the files they cite. Two free answers a day without an account.
Want this for your own codebase? Map your repo free
About this page
Get a page like this for your own codebase
Repowise built this map of rockbenben/subtitle-translator from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
rockbenben/subtitle-translator FAQ
What is subtitle-translator?
subtitle-translator is a browser-based batch tool for translating .srt, .ass, .vtt and .lrc subtitle files. It sends only the dialogue text to the translation engine, so the timing of each cue is not changed. It supports more than 120 languages.
How does subtitle-translator work?
subtitle-translator removes timecodes and format headers locally and sends only the dialogue to the chosen engine. The translated text is then placed back into the original structure. Results are exported as files that keep the original filename.
What language is subtitle-translator written in?
subtitle-translator is written mainly in TypeScript, with 118 TypeScript files in its code index. It also includes a few JavaScript files and a Dockerfile.
How is the subtitle-translator code organized?
subtitle-translator keeps most of its code under the src directory, which holds 115 files. The scripts directory holds the command line entry point at scripts/cli.ts, and the root directory holds the top-level configuration files.
When should I use subtitle-translator?
Use subtitle-translator to translate a whole season of subtitles in one pass without changing the timing. It is also useful when you need the same subtitles in several target languages at once.
What license does subtitle-translator use?
subtitle-translator is released under the MIT license, identified as MIT.
Code health
Hotspots average 3.7, the place fixes pay off most.
On the leaderboards:#68 of 70 TypeScript repos
Key features of subtitle-translator
- Translates only the dialogue text, so timecodes and cue structure stay intact.
- Batch-translates many subtitle files at once, with each file downloaded under its original filename.
- Exports several target languages in a single pass, each as its own file with the language code appended.
- Supports traditional translation services and many LLM providers and gateways, configured in the settings.
- Caches all translations in IndexedDB so translated files survive a page refresh.
How rockbenben/subtitle-translator works
Subtitle files are read in the browser, where the parsers separate timecodes, cue numbers and format headers from the dialogue text. The src/app/lib/translation/registry.ts file belongs to the translation library and is one of the project's hotspot files. The src/app/lib/translation/services/llm.ts file contains the code that sends dialogue to LLM providers, with optional surrounding lines as context. The src/app/hooks/useTranslationState.tsx file is a React hook that holds translation state for the interface, and src/app/[locale]/SubtitleTranslator.tsx is the main page component. The scripts/cli.ts file is the single entry point for running the same engine from a terminal, and the Dockerfile builds a container image for the project.
The codebase has 149 files and 929 symbols in 3 modules, led by TypeScript, JavaScript and Dockerfile. Code health is 5.8 out of 10, rated fair.
Maintain rockbenben/subtitle-translator?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of rockbenben/subtitle-translator. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask subtitle-translator's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/rockbenben/subtitle-translator?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/rockbenben/subtitle-translator?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/rockbenben/subtitle-translator.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/rockbenben/subtitle-translator?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/rockbenben/subtitle-translator.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/rockbenben/subtitle-translator.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>