From cfaa5ee25c094a96e106ce0bf657f8cd6a59b867 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 10 Aug 2021 07:52:45 +0530 Subject: refactor: Use symbols for key shortcuts --- src/components/settings/settings/EditSettingsForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/settings') diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index e9ea97d1f..a4381e37d 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js @@ -16,7 +16,7 @@ import { FRANZ_TRANSLATION, GITHUB_FRANZ_URL, } from '../../../config'; -import { DEFAULT_APP_SETTINGS, isMac, isWindows } from '../../../environment'; +import { cmdKey, shiftKey, DEFAULT_APP_SETTINGS, isMac, isWindows } from '../../../environment'; import globalMessages from '../../../i18n/globalMessages'; const messages = defineMessages({ @@ -54,7 +54,7 @@ const messages = defineMessages({ }, lockInfo: { id: 'settings.app.lockInfo', - defaultMessage: '!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut CMD/CTRL+Shift+L.', + defaultMessage: '!!!Password Lock allows you to keep your messages protected.\nUsing Password Lock, you will be prompted to enter your password everytime you start Ferdi or lock Ferdi yourself using the lock symbol in the bottom left corner or the shortcut {lockShortcut}.', }, scheduledDNDTimeInfo: { id: 'settings.app.scheduledDNDTimeInfo', @@ -548,7 +548,7 @@ export default @observer class EditSettingsForm extends Component { }} > - { intl.formatMessage(messages.lockInfo) } + { intl.formatMessage(messages.lockInfo, { lockShortcut: `${cmdKey}+${shiftKey}+L` }) }

-- cgit v1.2.3-70-g09d2