This repository provides a tool for translating subtitle files from English to Vietnamese. It processes all subtitle files (.srt format) in a specified folder and translates the text while keeping the original subtitle timing intact.
- Batch Translation: Translates all
.srtfiles in a specified folder from English to Vietnamese. - Subtitle Timing Preservation: Keeps the original subtitle timing format intact.
- Support for Multiple Files: Automatically processes multiple subtitle files in a single folder.
-
Clone the Repository
git clone https://github.com/yourusername/subtitle-translator.git cd subtitle-translator``
-
Install Dependencies Make sure you have Node.js installed, then run:
npm install
-
Place all your
.srtsubtitle files into thesubtitlesfolder. -
Run the script:
node index.js -
Enter the source and destination folders then click Translate.
1
00:00:04,530 --> 00:00:09,060
Hello!
2
00:00:09,090 --> 00:00:13,980
How are you?
1
00:00:04,530 --> 00:00:09,060
Xin chào!
2
00:00:09,090 --> 00:00:13,980
Bạn khỏe không?
- The translation is performed using an external API, so an internet connection is required.
- Currently, only
.srtfiles are supported. - The quality of the translation depends on the performance of the translation API.
We welcome contributions! If you find a bug or want to add a new feature, please create an issue or a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.