diff options
author | 2018-03-27 15:19:44 +0200 | |
---|---|---|
committer | 2018-03-27 15:19:44 +0200 | |
commit | 63d4281300ef86cbec6869bad3cbbb976c219c7d (patch) | |
tree | 29ae51983e0e7b07f0d450b6b8928a227620903a /src/containers | |
parent | move windows arch config to electron-builder.yml (diff) | |
download | ferdium-app-63d4281300ef86cbec6869bad3cbbb976c219c7d.tar.gz ferdium-app-63d4281300ef86cbec6869bad3cbbb976c219c7d.tar.zst ferdium-app-63d4281300ef86cbec6869bad3cbbb976c219c7d.zip |
Move "locale" to user data
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 1fa7ce8bc..e67c2964b 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -91,15 +91,13 @@ export default class EditSettingsScreen extends Component { | |||
91 | showDisabledServices: settingsData.showDisabledServices, | 91 | showDisabledServices: settingsData.showDisabledServices, |
92 | showMessageBadgeWhenMuted: settingsData.showMessageBadgeWhenMuted, | 92 | showMessageBadgeWhenMuted: settingsData.showMessageBadgeWhenMuted, |
93 | enableSpellchecking: settingsData.enableSpellchecking, | 93 | enableSpellchecking: settingsData.enableSpellchecking, |
94 | // spellcheckingLanguage: settingsData.spellcheckingLanguage, | ||
95 | locale: settingsData.locale, | ||
96 | beta: settingsData.beta, | ||
97 | }, | 94 | }, |
98 | }); | 95 | }); |
99 | 96 | ||
100 | user.update({ | 97 | user.update({ |
101 | userData: { | 98 | userData: { |
102 | beta: settingsData.beta, | 99 | beta: settingsData.beta, |
100 | locale: settingsData.locale, | ||
103 | }, | 101 | }, |
104 | }); | 102 | }); |
105 | } | 103 | } |
@@ -169,12 +167,6 @@ export default class EditSettingsScreen extends Component { | |||
169 | value: settings.all.enableSpellchecking, | 167 | value: settings.all.enableSpellchecking, |
170 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, | 168 | default: DEFAULT_APP_SETTINGS.enableSpellchecking, |
171 | }, | 169 | }, |
172 | // spellcheckingLanguage: { | ||
173 | // label: intl.formatMessage(messages.spellcheckingLanguage), | ||
174 | // value: settings.all.spellcheckingLanguage, | ||
175 | // options: spellcheckerLocales, | ||
176 | // default: DEFAULT_APP_SETTINGS.spellcheckingLanguage, | ||
177 | // }, | ||
178 | locale: { | 170 | locale: { |
179 | label: intl.formatMessage(messages.language), | 171 | label: intl.formatMessage(messages.language), |
180 | value: app.locale, | 172 | value: app.locale, |