Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 481 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 481 Bytes

gulp-translatify

Replaces long descriptive translation variables of angular-translate with shortcodes.

Usage

var translatify = require('gulp-translatify');

var translationFiles = [
  'app/files/lang-de.js',
  'app/files/lang-en.js'
];

gulp.task('translatify', function() {
  return gulp.src([
    'dist/scripts.js',
  ])
    .pipe(translatify(translationFiles))
    .pipe(gulp.dest('dist'));
});