2013-07-25 09:46:03 +02:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
grunt.initConfig({
|
2016-02-28 09:25:08 +01:00
|
|
|
json: {
|
|
|
|
main: {
|
|
|
|
options: {
|
|
|
|
namespace: 'locales',
|
|
|
|
includePath: true,
|
|
|
|
processName: function(filename) {
|
|
|
|
return filename.toLowerCase().match(/^locale\/(.*)\/lc_messages/)[1];
|
|
|
|
}
|
|
|
|
},
|
|
|
|
src: ['locale/**/LC_MESSAGES/*.json'],
|
2016-02-28 10:00:22 +01:00
|
|
|
dest: 'dist/locales.js'
|
2016-02-28 09:25:08 +01:00
|
|
|
}
|
2013-07-25 09:46:03 +02:00
|
|
|
}
|
|
|
|
});
|
2016-02-28 09:25:08 +01:00
|
|
|
grunt.loadNpmTasks('grunt-json');
|
2013-07-25 09:46:03 +02:00
|
|
|
};
|