Skip to content

A plugin for Gulp to convert SRT files to translation tool xml format and back.

License

Notifications You must be signed in to change notification settings

DerHannes85/gulp-translation-tool-srt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-translation-tool-srt

gulp-translation-tool-srt plugin for gulp

Usage

First, install gulp-translation-tool-srt as a dependency:

npm install gulp-translation-tool-srt

Then, add it to your gulpfile.js:

var gulpTranslationToolSRT = require("gulp-translation-tool-srt");

gulp.src('./data/*.srt')
    .pipe(gulpTranslationToolSrt({
        mode: 'toXML',
        name: function (basename) {
            return basename + '-done';
        }
    }))
    .pipe(gulp.dest('./data/output/'));

API

gulpTranslationToolSRT(options)

options.mode

Type: String Default: toXML

Switch the direction of the conversion between toXML and toSRT.

options.name

Type: String|Function

Rename the filename of the output use string or return function.

License

MIT License

About

A plugin for Gulp to convert SRT files to translation tool xml format and back.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published