diff options
author | 2019-03-05 16:31:48 +0100 | |
---|---|---|
committer | 2019-03-05 16:31:48 +0100 | |
commit | 8745cd1b8250c370b1681f0728116150c72a4279 (patch) | |
tree | 643051f45a55ac048f45f253544a37d466185fd6 /src/containers | |
parent | Merge branch 'develop' of https://github.com/meetfranz/franz into develop (diff) | |
download | ferdium-app-8745cd1b8250c370b1681f0728116150c72a4279.tar.gz ferdium-app-8745cd1b8250c370b1681f0728116150c72a4279.tar.zst ferdium-app-8745cd1b8250c370b1681f0728116150c72a4279.zip |
setup react-intl translations managing script
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditUserScreen.js | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/src/containers/settings/EditUserScreen.js b/src/containers/settings/EditUserScreen.js index bade928a0..81f689400 100644 --- a/src/containers/settings/EditUserScreen.js +++ b/src/containers/settings/EditUserScreen.js | |||
@@ -23,23 +23,21 @@ const messages = defineMessages({ | |||
23 | id: 'settings.user.form.email', | 23 | id: 'settings.user.form.email', |
24 | defaultMessage: '!!!Email', | 24 | defaultMessage: '!!!Email', |
25 | }, | 25 | }, |
26 | accountType: { | 26 | accountTypeLabel: { |
27 | label: { | 27 | id: 'settings.user.form.accountType.label', |
28 | id: 'settings.user.form.accountType.label', | 28 | defaultMessage: '!!!Account type', |
29 | defaultMessage: '!!!Account type', | 29 | }, |
30 | }, | 30 | accountTypeIndividual: { |
31 | individual: { | 31 | id: 'settings.user.form.accountType.individual', |
32 | id: 'settings.user.form.accountType.individual', | 32 | defaultMessage: '!!!Individual', |
33 | defaultMessage: '!!!Individual', | 33 | }, |
34 | }, | 34 | accountTypeNonProfit: { |
35 | nonProfit: { | 35 | id: 'settings.user.form.accountType.non-profit', |
36 | id: 'settings.user.form.accountType.non-profit', | 36 | defaultMessage: '!!!Non-Profit', |
37 | defaultMessage: '!!!Non-Profit', | 37 | }, |
38 | }, | 38 | accountTypeCompany: { |
39 | company: { | 39 | id: 'settings.user.form.accountType.company', |
40 | id: 'settings.user.form.accountType.company', | 40 | defaultMessage: '!!!Company', |
41 | defaultMessage: '!!!Company', | ||
42 | }, | ||
43 | }, | 41 | }, |
44 | currentPassword: { | 42 | currentPassword: { |
45 | id: 'settings.user.form.currentPassword', | 43 | id: 'settings.user.form.currentPassword', |
@@ -94,21 +92,21 @@ export default @inject('stores', 'actions') @observer class EditUserScreen exten | |||
94 | accountType: { | 92 | accountType: { |
95 | value: user.accountType, | 93 | value: user.accountType, |
96 | validators: [required], | 94 | validators: [required], |
97 | label: intl.formatMessage(messages.accountType.label), | 95 | label: intl.formatMessage(messages.accountTypeLabel), |
98 | options: [{ | 96 | options: [{ |
99 | value: 'individual', | 97 | value: 'individual', |
100 | label: intl.formatMessage(messages.accountType.individual), | 98 | label: intl.formatMessage(messages.accountTypeIndividual), |
101 | }, { | 99 | }, { |
102 | value: 'non-profit', | 100 | value: 'non-profit', |
103 | label: intl.formatMessage(messages.accountType.nonProfit), | 101 | label: intl.formatMessage(messages.accountTypeNonProfit), |
104 | }, { | 102 | }, { |
105 | value: 'company', | 103 | value: 'company', |
106 | label: intl.formatMessage(messages.accountType.company), | 104 | label: intl.formatMessage(messages.accountTypeCompany), |
107 | }], | 105 | }], |
108 | }, | 106 | }, |
109 | organization: { | 107 | organization: { |
110 | label: intl.formatMessage(messages.accountType.company), | 108 | label: intl.formatMessage(messages.accountTypeCompany), |
111 | placeholder: intl.formatMessage(messages.accountType.company), | 109 | placeholder: intl.formatMessage(messages.accountTypeCompany), |
112 | value: user.organization, | 110 | value: user.organization, |
113 | }, | 111 | }, |
114 | oldPassword: { | 112 | oldPassword: { |