Change *.json resource files programatically of Angular Translate


I am working on a way to update translations depending of a restful api.

It is possible to modify the file wich is used to get translations programatically.

For example if I detect new version of translations download the new en.json file. The use it to all translations on app.
Is it possible?