var Compiler = require('angular-gettext-tools').Compiler;
var loaderUtils = require('loader-utils');

module.exports = function (source) {
  this.cacheable();

  var options = loaderUtils.parseQuery(this.query);
  var compiler = new Compiler(options);

  result = compiler.convertPo([source]);
  return result;
};

@@ -246,16 +246,245 @@
 ions);%0A%0A
+  // https://github.com/rubenv/grunt-angular-gettext/blob/master/tasks/compile.js#L7%0A  if (options.format && !Compiler.hasFormat(options.format)) %7B%0A    throw new Error('There is no %22' + options.format + '%22 output format.');%0A  %7D%0A%0A
   result

Format options check