code: function replace(translation, replacements) {
      // check if the object has a replace property
      if (!translation.replace) {
        return translation;
      }
  
      return translation.replace(matcher, function (placeholder) {
        // remove the identifiers (can be set on the module level)
        var key = placeholder.replace(identifiers[0], '').replace(identifiers[1], '');
  
        if (replacements[key] !== undefined) {
          return replacements[key];
        } // warn user that the placeholder has not been found
  
  
        if (warnings) {
          console.group ? console.group('i18n: Not all placeholders found') : console.warn('i18n: Not all placeholders found');
          console.warn('Text:', translation);
          console.warn('Placeholder:', placeholder);
  
          if (console.groupEnd) {
            console.groupEnd();
          }
        } // return the original placeholder
  
  
        return placeholder;
      });
    }
docs: define the replacement function