Skip to content

Instantly share code, notes, and snippets.

@grappler
Last active October 5, 2020 03:47
Show Gist options
  • Save grappler/10187003 to your computer and use it in GitHub Desktop.
Save grappler/10187003 to your computer and use it in GitHub Desktop.
https://webtranslateit.com/en/docs/web_translate_it_client/ / http://docs.transifex.com/developer/client/ Run this command in the folder to install all of the files needed. `npm install --save-dev`
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec: {
update_po: {
cmd: 'tx pull -a --minimum-perc=100'
}
},
po2mo: {
files: {
src: 'languages/*.po',
expand: true,
},
}
});
// Default task(s).
grunt.registerTask( 'default', [ 'exec', 'po2mo' ] );
};
{
"name": "grapplerulrich",
"version": "1.0.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-po2mo": "~0.1.0",
"load-grunt-tasks": "~0.2.0",
"grunt-exec": "~0.4.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment