From 6038c429ae2ba9045786de1ec685044e47ee05af Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Mon, 7 Jan 2019 23:07:36 +0530 Subject: [PATCH] Typescript - Add translation for certificate error dialog buttons --- src/browser/dialog-handler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/browser/dialog-handler.ts b/src/browser/dialog-handler.ts index bbd2b699..7a1f89ec 100644 --- a/src/browser/dialog-handler.ts +++ b/src/browser/dialog-handler.ts @@ -63,7 +63,11 @@ electron.app.on('certificate-error', (event, webContents, url, error, _certifica const browserWin = electron.BrowserWindow.fromWebContents(webContents); const buttonId = electron.dialog.showMessageBox(browserWin, { type: 'warning', - buttons: [ 'Allow', 'Deny', 'Ignore All' ], + buttons: [ + i18n.t('Allow')(), + i18n.t('Deny')(), + i18n.t('Ignore All')(), + ], defaultId: 1, cancelId: 1, noLink: true,