lib/msgmerge.js
function updatePoFiles(filename, pattern) {
  var merged = [];
  var searchPath = path.dirname(filename);

  pattern = pattern || '*.po';

  glob.sync(pattern, {
    cwd: path.dirname(filename)
  }).forEach(function(file) {
    var poFile = path.join(searchPath, file);
    merged.push(mergeFiles(filename, poFile));
  });

  return Promise.all(merged);
}
function updatePoFiles(filename, pattern) {
  var merged = [];
  var searchPath = path.dirname(filename);

  pattern = pattern || '*.po';

  glob.sync(pattern, {
    cwd: path.dirname(filename)
  }).forEach(function(file) {
    var poFile = path.join(searchPath, file);
    merged.push(mergeFiles(filename, poFile));
  });

  return Promise.all(merged);
}
function updatePoFiles ( filename , pattern ) { var merged = [ ] ; var searchPath = path . dirname ( filename ) ; pattern = pattern || '*.po' ; glob . sync ( pattern , { cwd : path . dirname ( filename ) } ) . forEach ( function ( file ) { var poFile = path . join ( searchPath , file ) ; merged . push ( mergeFiles ( filename , poFile ) ) ; } ) ; return Promise . all ( merged ) ; }
Set multiple headers at once.

Magically expands certain values to add Poedit headers.

@param {string} filename Full path to a POT file.
@param {string} pattern  Optional. Glob pattern of PO files to update.
@returns {Promise}
Set multiple headers at once .