diff options
author | 2021-09-07 08:05:34 +0530 | |
---|---|---|
committer | 2021-09-07 09:41:27 +0530 | |
commit | 8b5de8dd779dfc2dfa45c930d143060ac7321acf (patch) | |
tree | 256547da3abb14429d73881a1251f4cda5127653 /src/components/auth/ChangeServer.js | |
parent | 5.6.1-nightly.52 [skip ci] (diff) | |
download | ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.tar.gz ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.tar.zst ferdium-app-8b5de8dd779dfc2dfa45c930d143060ac7321acf.zip |
refactor: externalize english text
Diffstat (limited to 'src/components/auth/ChangeServer.js')
-rw-r--r-- | src/components/auth/ChangeServer.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/auth/ChangeServer.js b/src/components/auth/ChangeServer.js index 7bab80280..8e8a7af32 100644 --- a/src/components/auth/ChangeServer.js +++ b/src/components/auth/ChangeServer.js | |||
@@ -9,6 +9,7 @@ import Button from '../ui/Button'; | |||
9 | import Infobox from '../ui/Infobox'; | 9 | import Infobox from '../ui/Infobox'; |
10 | import { url, required } from '../../helpers/validation-helpers'; | 10 | import { url, required } from '../../helpers/validation-helpers'; |
11 | import { LIVE_FERDI_API, LIVE_FRANZ_API } from '../../config'; | 11 | import { LIVE_FERDI_API, LIVE_FRANZ_API } from '../../config'; |
12 | import globalMessages from '../../i18n/globalMessages'; | ||
12 | 13 | ||
13 | const messages = defineMessages({ | 14 | const messages = defineMessages({ |
14 | headline: { | 15 | headline: { |
@@ -31,11 +32,6 @@ const messages = defineMessages({ | |||
31 | id: 'changeserver.urlError', | 32 | id: 'changeserver.urlError', |
32 | defaultMessage: '!!!Enter a valid URL', | 33 | defaultMessage: '!!!Enter a valid URL', |
33 | }, | 34 | }, |
34 | submit: { | ||
35 | id: 'changeserver.submit', | ||
36 | defaultMessage: '!!!Submit', | ||
37 | }, | ||
38 | |||
39 | }); | 35 | }); |
40 | 36 | ||
41 | export default @observer class ChangeServer extends Component { | 37 | export default @observer class ChangeServer extends Component { |
@@ -120,7 +116,7 @@ export default @observer class ChangeServer extends Component { | |||
120 | <Button | 116 | <Button |
121 | type="submit" | 117 | type="submit" |
122 | className="auth__button" | 118 | className="auth__button" |
123 | label={intl.formatMessage(messages.submit)} | 119 | label={intl.formatMessage(globalMessages.submit)} |
124 | /> | 120 | /> |
125 | </form> | 121 | </form> |
126 | </div> | 122 | </div> |