lib/pot.js
function normalizeForComparison(pot) {
  var clone = _.cloneDeep(pot);

  if (!pot) {
    return pot;
  }

  // Normalize the content type case.
  clone.headers['content-type'] = clone.headers['content-type'].toLowerCase();

  // Blank out the dates.
  clone.headers['pot-creation-date'] = '';
  clone.headers['po-revision-date'] = '';

  // Blank out the headers in the translations object. These are used for
  // reference only and won't be compiled, so they shouldn't be used when
  // comparing POT objects.
  clone.translations['']['']['msgstr'] = '';

  return clone;
}
function normalizeForComparison(pot) {
  var clone = _.cloneDeep(pot);

  if (!pot) {
    return pot;
  }

  // Normalize the content type case.
  clone.headers['content-type'] = clone.headers['content-type'].toLowerCase();

  // Blank out the dates.
  clone.headers['pot-creation-date'] = '';
  clone.headers['po-revision-date'] = '';

  // Blank out the headers in the translations object. These are used for
  // reference only and won't be compiled, so they shouldn't be used when
  // comparing POT objects.
  clone.translations['']['']['msgstr'] = '';

  return clone;
}
function normalizeForComparison ( pot ) { var clone = _ . cloneDeep ( pot ) ; if ( ! pot ) { return pot ; } // Normalize the content type case. clone . headers [ 'content-type' ] = clone . headers [ 'content-type' ] . toLowerCase ( ) ; // Blank out the dates. clone . headers [ 'pot-creation-date' ] = '' ; clone . headers [ 'po-revision-date' ] = '' ; // Blank out the headers in the translations object. These are used for // reference only and won't be compiled, so they shouldn't be used when // comparing POT objects. clone . translations [ '' ] [ '' ] [ 'msgstr' ] = '' ; return clone ; }
Normalize Pot contents created by gettext-parser.

This normalizes dynamic strings in a POT file in order to compare them and
determine if anything has changed.

Headers are stored in two locations.

@param {Object} pot Pot contents created by gettext-parser.
@returns {Object}
Normalize Pot contents created by gettext - parser .