grunt-i18n-rename
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "grunt-i18n-rename", | ||
"description": "Browserify centric plugin that allows multiple builds, rename files with known extensions in order to provide internationalised single page apps", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"homepage": "https://github.com/amido/grunt-i18n-rename", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -17,4 +17,9 @@ /* | ||
grunt.registerTask('i18n', 'Browserify centric plugin that allows multiple builds, rename files with known extensions in order to provide internationalised single page apps', function() { | ||
console.log('hello'); | ||
var config = grunt.config.get('i18n'); | ||
if (!config.task) | ||
throw new Error('i18n: task must be supplied'); | ||
if (!config.locales.length) | ||
throw new Error('i18n: locales must contain at least one value'); | ||
grunt.task.run(config.task); | ||
@@ -21,0 +26,0 @@ var root = config.root || ''; |
10214
146