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 {