Skip to main content
WebVTT files store timed captions for web video. Hyperlocalise translates supported cue text. Check both cue structure and reading speed in a video player after translation. Supported extensions: .vtt.

Source file

Save this example as locales/en-US/messages.vtt.

Configure your files

Use this i18n.yml for the example, or add its file mapping to your existing bucket. See path templates for other layouts.

Translate

Install the CLI and set OPENAI_API_KEY in your project’s .env.local or shell. You can also configure another AI provider.
The dry run previews the work. The second command writes translations to the configured target path and updates the lockfile.

Behavior and limitations

  • Each cue is one translation unit with a sequential key such as vtt.0001.
  • Cue identifiers, timing, positioning, and settings are preserved. Timestamps and named cue identifiers supply context.
  • WEBVTT headers and NOTE, STYLE, and REGION blocks remain unchanged.
  • Writeback keeps cue counts aligned with the template. Review reading speed and line length separately.

Next steps