From 1d9bd748057caeaa2c02566f56aaa3e18995f0fa Mon Sep 17 00:00:00 2001 From: ov Date: Tue, 18 Aug 2020 10:07:27 +0100 Subject: [PATCH] Spanish Translation: Email verification (#1555) * EmailVerificationView Co-authored-by: Andrew Nicolaou --- .../modules/User/pages/EmailVerificationView.jsx | 16 +++++++++------- translations/locales/en-US/translations.json | 9 +++++++++ translations/locales/es-419/translations.json | 8 ++++++++ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/client/modules/User/pages/EmailVerificationView.jsx b/client/modules/User/pages/EmailVerificationView.jsx index 0ce31192..f34f967c 100644 --- a/client/modules/User/pages/EmailVerificationView.jsx +++ b/client/modules/User/pages/EmailVerificationView.jsx @@ -3,6 +3,7 @@ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; +import { withTranslation } from 'react-i18next'; import get from 'lodash/get'; import { Helmet } from 'react-helmet'; import { verifyEmailConfirmation } from '../actions'; @@ -31,20 +32,20 @@ class EmailVerificationView extends React.Component { if (this.verificationToken() == null) { status = ( -

That link is invalid.

+

{this.props.t('EmailVerificationView.InvalidTokenNull')}

); } else if (emailVerificationTokenState === 'checking') { status = ( -

Validating token, please wait...

+

{this.props.t('EmailVerificationView.Checking')}

); } else if (emailVerificationTokenState === 'verified') { status = ( -

All done, your email address has been verified.

+

{this.props.t('EmailVerificationView.Verified')}

); setTimeout(() => browserHistory.push('/'), 1000); } else if (emailVerificationTokenState === 'invalid') { status = ( -

Something went wrong.

+

{this.props.t('EmailVerificationView.InvalidState')}

); } @@ -53,10 +54,10 @@ class EmailVerificationView extends React.Component {