diff --git a/config/default.js b/config/default.js index bdda23acda4..4acf05bafdf 100644 --- a/config/default.js +++ b/config/default.js @@ -21,6 +21,9 @@ module.exports = { currency: 'USD', locale: 'en', + // Default time dipslay mode (12Hour|24Hour). + timeDisplayMode: '12hour', + autoupdate: { active: true, channel: 'beta', diff --git a/renderer/components/Settings/SettingsFieldsGeneral.js b/renderer/components/Settings/SettingsFieldsGeneral.js index 83af5d48873..0796cd40205 100644 --- a/renderer/components/Settings/SettingsFieldsGeneral.js +++ b/renderer/components/Settings/SettingsFieldsGeneral.js @@ -26,6 +26,15 @@ const themeMessageMapper = key => { return filters[key] } +const displayModeItems = [{ key: '12hour' }, { key: '24hour' }] +const displayModeMessageMapper = key => { + const filters = { + '12Hour': messages.timeDisplayMode_option_12hour, + '24hour': messages.timeDisplayMode_option_24hour, + } + return filters[key] +} + const SettingsFieldsGeneral = ({ currentConfig }) => { return ( <> @@ -72,6 +81,21 @@ const SettingsFieldsGeneral = ({ currentConfig }) => { + } + right={ +