erasys/grunt-transifex — pull request #3 by helgatheviking (2014-05-06 13:44:10+00:00)
Title: Save files instead of json strings

Related to issue #2, I've been hacking around with this:

According to [transifex docu](http://docs.transifex.com/developer/api/translations), you can add a get parameter of `?file` to the URL and it will download the file itself.

So I added a `mode` option that when set to "file" will skip the json string parsing and just save the retrieved contents as whatever filename I've specified in the `filename` option.

```
// get transifex translations
transifex: {
"radio-buttons-for-taxonomies": {
options: {
targetDir: "languages",
mode: "file",
filename : "_resource_-_lang_.po",
}
}
}
```