function hideWindowsAndShowDialog (i18nKey, opts) {
  hideOtherWindows()
  showDialog({
    title: i18n.t(`${i18nKey}.title`),
    message: i18n.t(`${i18nKey}.message`, opts),
    buttons: [i18n.t('quit')]
  })
}
Show the dialog with the text from the i18nKey, using the
options opts.

@param {string} i18nKey
@param {any} opts