translations

This commit is contained in:
okbel
2018-05-03 13:32:52 -03:00
parent 94b3ab4ac8
commit f6d3f4cb14
8 changed files with 91 additions and 45 deletions
@@ -4,6 +4,7 @@ import cn from 'classnames';
import { Button } from 'plugin-api/beta/client/components/ui';
import styles from './DeleteMyAccountStep.css';
import InputField from './InputField';
import { t } from 'plugin-api/beta/client/services';
const initialState = {
showError: false,
@@ -42,11 +43,10 @@ class DeleteMyAccountStep3 extends React.Component {
return (
<div className={styles.step}>
<h4 className={styles.subTitle}>
Are you sure you want to delete your account?
{t('talk-plugin-profile-data.delete_request.step3.subtitle')}
</h4>
<p className={styles.description}>
To confirm you would like to delete your account please type in the
following phrase into the text box below:
{t('talk-plugin-profile-data.delete_request.step3.description')}
</p>
<input
className={styles.textBox}
@@ -56,13 +56,17 @@ class DeleteMyAccountStep3 extends React.Component {
/>
<InputField
id="confirmPhrase"
label={'Type phrase below to confirm'}
label={t(
'talk-plugin-profile-data.delete_request.step3.type_to_confirm'
)}
name="confirmPhrase"
type="text"
onChange={this.props.onChange}
defaultValue=""
hasError={this.formHasError()}
errorMsg={'The input is not correct'}
errorMsg={t(
'talk-plugin-profile-data.delete_request.input_is_not_correct'
)}
showError={this.state.showError}
columnDisplay
/>
@@ -71,13 +75,13 @@ class DeleteMyAccountStep3 extends React.Component {
className={cn(styles.button, styles.cancel)}
onClick={this.props.cancel}
>
Cancel
{t('talk-plugin-profile-data.delete_request.cancel')}
</Button>
<Button
className={cn(styles.button, styles.danger)}
onClick={this.deleteAndContinue}
>
Delete My Account
{t('talk-plugin-profile-data.delete_request.delete_my_account')}
</Button>
</div>
</div>