Created
May 14, 2014 14:20
-
-
Save stephane/b4d618f7acb6a58a2e5d to your computer and use it in GitHub Desktop.
Grunt task to extract and compile PO files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global module */ | |
module.exports = function(grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-angular-gettext'); | |
grunt.initConfig({ | |
nggettext_extract: { | |
ops: { | |
files: { | |
'locale/fr/LC_MESSAGES/angular.pot': [ | |
'your/path/app/partials/*.html', | |
] | |
} | |
} | |
}, | |
nggettext_compile: { | |
ops: { | |
files: { | |
'your/path/angular/fr.js': [ | |
'locale/fr/LC_MESSAGES/angular.po' | |
] | |
} | |
} | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment