'use strict';
var del = require('del');
var gulp = require('gulp');
var path = require('path');



var statici18n = require('../../../index');

gulp.task('clean', function(done) {
  del(['build'], { cwd: __dirname, force: true }, done);
});

gulp.task('build', ['clean'], function(){
  return gulp.src(['src/**'], { cwd: __dirname, base: path.join(__dirname, 'src') })
    .pipe(gulp.dest('build', { cwd: __dirname }));
});
var localePath = path.join(__dirname, 'locale');
var installDepLocalePath = path.join(__dirname, 'installed_deps/locale');
var options = {
  localeDirs: [localePath, installDepLocalePath]
};

gulp.task('translate', ['build'], function(){
  return gulp.src(['build'], { cwd: __dirname })
    .pipe(statici18n(options));
});

gulp.task('default', ['translate']);

module.exports = gulp;

@@ -91,17 +91,16 @@
 th');%0A%0A%0A
-%0A
 var stat
@@ -628,16 +628,25 @@
 ranslate
+Multidirs
 ', %5B'bui
@@ -655,32 +655,32 @@
 '%5D, function()%7B%0A
-
   return gulp.sr
@@ -764,29 +764,243 @@
 sk('
-default', %5B'translate
+translatesingledir', %5B'build'%5D, function()%7B%0A  return gulp.src(%5B'build'%5D, %7B cwd: __dirname %7D)%0A    .pipe(statici18n(%7BlocaleDirs: %5BlocalePath%5D%7D));%0A%7D);%0A%0Agulp.task('default', %5B'translateMultidirs'%5D);%0Agulp.task('single', %5B'translatesingledir
 '%5D);

add second translation task for testing single and multi catalog