π¬ Translate SRT files with Google Translate
β‘ 1,657 views Β· π¬ Content Creation & Video
Description
This workflow is designed to translate SRT subtitle files from one language to another using Google Translate.
The workflow follows these main steps:
- Accept an SRT file upload and target language selection
- Extract and parse the SRT file content
- Split the content into translatable segments
- Translate each segment using Google Translate
- Reassemble the translated content into a proper SRT format
- Return the translated file to the user
Youβll need a Google Console Cloud account to access the Translate API.
Who is this for?
This workflow is designed for content creators, video editors, translators, and anyone who needs to translate subtitle files (.srt) from one language to another. Itβs particularly useful for those working with international content, educational materials, or preparing videos for global audiences.
What problem does this workflow solve?
Translating subtitle files manually is time-consuming and error-prone. Professional translation services can be expensive, especially for multiple videos or long content. This workflow automates the translation process while maintaining the proper SRT format including timestamps and subtitle numbering.
Setup
- Set up Google Translate credentials: β Create a Google Cloud project and enable the Google Translate API β Create OAuth credentials and configure them in the Google Translate node
- Customize language options: β The default workflow includes English (EN) and Japanese (JP) options β Add more language options by editing the dropdown field in the βReceive SRT File to Translateβ node β Use standard language codes that Google Translate supports
- Add more languages: β Edit the form trigger node to include additional language options in the dropdown
π Nodes Used
Google Translate, n8n Form Trigger, Convert to File, Extract from File, n8n Form
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File