.srt.
Source file
Save this example aslocales/en-US/messages.srt.
Configure your files
Use thisi18n.yml for the example, or add its file mapping to your existing bucket.
See path templates for other layouts.
Translate
Install the CLI and setOPENAI_API_KEY in your
project’s .env.local or shell. You can also configure another
AI provider.
Behavior and limitations
-
Each cue is one translation unit, including multiline text. Keys are sequential, such as
srt.0001. - Cue numbers, timestamps, and positioning remain unchanged. Timing is supplied as translation context.
- Writeback replaces cue text. Extra keys are ignored, and blank lines inside translated text are removed to avoid creating new cues.
- Review subtitle length and reading speed separately; translation does not retime your video.
Next steps
- Check translations before committing generated files.
- Local translation workflow explains repeat runs.
- Browse all file formats.

