/*
 * statici18n
 * https://github.com/beck/grunt-static-i18n
 *
 * Copyright (c) 2014 Douglas Beck
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function(grunt) {
  // load all npm grunt tasks
  require('load-grunt-tasks')(grunt);

  // Project configuration.
  grunt.initConfig({
    jshint: {
      all: [
        'Gruntfile.js',
        'tasks/*.js',
        'test/*.js'
      ],
      options: {
        jshintrc: '.jshintrc',
        reporter: require('jshint-stylish')
      }
    },

    simplemocha: {
      options: {
        reporter: 'spec'
      },
      all: { src: ['test/**/*_test.js'] }
    },

    // abideExtract is limited by the parsers used in jsxgettext
    // grunt-xgettext works on text because it regexs the source
    xgettext: {
      options: {
        functionName: '_',
        potFile: 'test/fixtures/app/locale/template/messages.pot',
      },
      fixtureJSON: {
        files: {
          javascript: ['test/fixtures/app/**/*.json'],
        },
      }
    },

    abideCreate: {
      options: {
        template: '<%= xgettext.options.potFile %>',
        languages: ['en-gb', 'fr'],  // fancy, changes to locales on create
        localeDir: 'test/fixtures/app/locale',
      }
    }

  });

  // Actually load this plugin's task(s).
  grunt.loadTasks('tasks');

  grunt.registerTask('makemessages', [
    'xgettext', 'xgettext', 'abideCreate'
  ]);
  grunt.registerTask('test', ['simplemocha']);

  // By default, lint and run all tests.
  grunt.registerTask('default', ['jshint', 'test']);

};

@@ -1233,24 +1233,311 @@
 e',%0A      %7D%0A
+    %7D,%0A%0A    statici18n: %7B%0A      options: %7B%0A        localeDir: '%3C%25= abideCreate.options.localeDir %25%3E'%0A      %7D,%0A      translateFixtureApp: %7B%0A        files: %5B%7B%0A          expand: true,%0A          cwd: 'test/fixtures/app',%0A          src: '**/*.json',%0A          dest: 'i18n'%0A        %7D%5D%0A      %7D%0A
     %7D%0A%0A  %7D);
@@ -1726,16 +1726,30 @@
 test', %5B
+'statici18n', 
 'simplem

Create statici18n task for test app