code: function sendFailed(language, replace) {
    const text = localize('SEND_FAILED_KEY', language);
    const retry = localize('Retry', language);
    const match = /\{Retry\}/.exec(text);
  
    if (match) {
      return (
        <React.Fragment>
          { text.substr(0, match.index) }
          { replace(retry) }
          { text.substr(match.index + match[0].length) }
        </React.Fragment>
      );
    } else {
      return text;
    }
  }
docs: TODO: [P4] Currently, this is the only place which use a templated string We could refactor this into a general component if there are more templated strings