bcabanes / gulp-angular-translate-extract

Gulp version of grunt-angular-translate.
MIT License
14 stars 12 forks source link

Can't understand how to select the destination directory #12

Open maximeborges opened 8 years ago

maximeborges commented 8 years ago

I do:

gulp.task "extract i18n", ->
  log "Generate i18n files " + (new Date()).toString()
  gulp.src ['public/build/js/app.js']
  .pipe angularTranslate
    lang: TR_lang
    dest: 'public/i18n'
  .pipe gulp.dest 'public/i18n'

since the file I want to scan is 'public/build/js/app.js' And I get a directory at the root of my project called i18n/ If I rerun the task all my translations get removed.

I really don't understand how you use the destination parameter, so if anyone can help me that will be cool.