whole_func_string: function softReplace(contentBlock, nativeString, localizedString) {
    var escapedString = ignoreExtraSpaces(
      ignoreEmptyAttrs(
        utils.escapeRegExpSpecialChars(
          nativeString
        )
      )
    );
    var regex = new RegExp('([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])', 'g');
    return contentBlock.replace(regex, '$1' + localizedString + '$3');
  }
func_code_string: function softReplace(contentBlock, nativeString, localizedString) {
    var escapedString = ignoreExtraSpaces(
      ignoreEmptyAttrs(
        utils.escapeRegExpSpecialChars(
          nativeString
        )
      )
    );
    var regex = new RegExp('([>"\']\\s*)(' + escapedString + ')(\\s*[<"\'])', 'g');
    return contentBlock.replace(regex, '$1' + localizedString + '$3');
  }
func_documentation_string: avoids unintentional localization of unrelated strings