From c4c6e4a86d1dcec6ab9f5b0cb399036c62543304 Mon Sep 17 00:00:00 2001 From: oruburos Date: Thu, 13 Aug 2020 11:52:11 +0100 Subject: [PATCH 1/2] EmailVerificationView --- translations/locales/en-US/translations.json | 4 ++++ translations/locales/es-419/translations.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index 652eece467..6416045478 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -208,5 +208,9 @@ "NewFolderForm": { "AddFolderSubmit": "Add Folder", "Placeholder": "Name" + }, + "EmailVerificationView": { + "Title": "p5.js Web Editor | Email Verification", + "Verify": "Verify your email" } } diff --git a/translations/locales/es-419/translations.json b/translations/locales/es-419/translations.json index 5f3efaf707..bce676447a 100644 --- a/translations/locales/es-419/translations.json +++ b/translations/locales/es-419/translations.json @@ -207,6 +207,10 @@ "NewFolderForm": { "AddFolderSubmit": "Agregar Directorio", "Placeholder": "Nombre" + }, + "EmailVerificationView": { + "Title": "Editor Web p5.js | Correo de Verificación", + "Verify": "Verica tu correo" } } From 46aa256fb739b2d88875cb002505b0a683a2e07d Mon Sep 17 00:00:00 2001 From: oruburos Date: Thu, 13 Aug 2020 20:49:14 +0100 Subject: [PATCH 2/2] Merge translations.json --- .../User/pages/EmailVerificationView.jsx | 16 ++- translations/locales/en-US/translations.json | 113 +++++++++++++++- translations/locales/es-419/translations.json | 126 ++++++++++++++++-- 3 files changed, 230 insertions(+), 25 deletions(-) diff --git a/client/modules/User/pages/EmailVerificationView.jsx b/client/modules/User/pages/EmailVerificationView.jsx index 0ce31192b3..f34f967c9d 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 {