doublesub
v0.0.8
Published
A library and command line tool to get two line subtitles with different languages from a single subtitle source, using Yandex Translate
Downloads
27
Maintainers
Readme
doublesub
A CLI tool and node API to help you append translated subtitles at the bottom of the original ones.
Watch your shows with hilarious mistranslated subtitles. At least you can learn languages faster.
Requirements
You need a Yandex translate API key here
Installation
If you just want to use the API
$ npm install doublesubWith also the CLI utility
$ npm install doublesub --globalCLI Usage
doublesub -f Kung.Fury.WEBRiP.srt -T en -F esOptions:
-h, --help output usage information
-V, --version output the version number
-t, --translate If set, only a single line of translated subtitles
-T, --to-lang <lang> The language to translate to and to be appended at the bottom
-F, --from-lang <lang> The original language of the .srt subtitle file
-f, --file <path> The original file of the .srt subtitle file in utf8
-y, --yandex-key <string> The API key for yandex translate, ignore if YANDEX_KEY is setAPI Usage
See comments on index.js
