This repository shows a basic setup for using the grunt plugin: grunt-swig-localization
Please visit that repository for a full list of options.
Clone the repository then run:
$ npm install
$ node_modules/.bin/grunt
At this point you should see 3 new files created in the dist/ directory