From 02c62c7b7578ff47d690b3085baa105b47bfe026 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Tue, 3 Sep 2019 09:54:30 +0200 Subject: i18n custom Ferdi strings --- src/components/auth/Login.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/components/auth/Login.js') diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index f8caebd7e..1563e471a 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js @@ -34,6 +34,14 @@ const messages = defineMessages({ id: 'login.invalidCredentials', defaultMessage: '!!!Email or password not valid', }, + customServerQuestion: { + id: 'login.customServerQuestion', + defaultMessage: '!!!Using a custom Ferdi server?', + }, + customServerSuggestion: { + id: 'login.customServerSuggestion', + defaultMessage: '!!!Try importing your Franz account', + }, tokenExpired: { id: 'login.tokenExpired', defaultMessage: '!!!Your session expired, please login again.', @@ -141,14 +149,13 @@ export default @observer class Login extends Component {

{intl.formatMessage(messages.invalidCredentials)}

{ window.ferdi.stores.settings.all.app.server !== 'https://api.franzinfra.com' && (

- Using a custom Ferdi server? Try - {' '} + {intl.formatMessage(messages.customServerQuestion)}{' '} -importing your Franz account + {intl.formatMessage(messages.customServerSuggestion)}

)} -- cgit v1.2.3-54-g00ecf