diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 31681bb6d..1bd1a6906 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -419,5 +419,8 @@ "device": "Device", "destination": "Destination", "learnMore": "Learn more", - "playAtCustomSpeed": "Play at $multipler$x speed" + "playAtCustomSpeed": "Play at $multipler$x speed", + "linkVisitWarningTitle": "Open this URL in your browser?", + "linkVisitWarningMessage": "Are you sure you wish to open $url$ in your browser?", + "open": "Open" } diff --git a/ts/components/conversation/Linkify.tsx b/ts/components/conversation/Linkify.tsx index 22187a3f5..7362cd38e 100644 --- a/ts/components/conversation/Linkify.tsx +++ b/ts/components/conversation/Linkify.tsx @@ -78,13 +78,13 @@ export class Linkify extends React.Component { const url = e.target.href; const openLink = () => { - // window.open(e.target.href); void shell.openExternal(url); } window.inboxStore?.dispatch(updateConfirmModal({ - title: "Hello", - message: "Are you sure you want to open this link?", + title: window.i18n('linkVisitWarningTitle'), + message: window.i18n("linkVisitWarningMessage", url), + okText: window.i18n("open"), onClickOk: openLink, onClickClose: () => { window.inboxStore?.dispatch(updateConfirmModal(null));