translations

This commit is contained in:
okbel
2018-05-03 13:45:33 -03:00
13 changed files with 91 additions and 109 deletions
@@ -29,10 +29,7 @@ class DeleteMyAccount extends React.Component {
const { cancelAccountDeletion, notify } = this.props;
try {
await cancelAccountDeletion();
notify(
'success',
t('talk-plugin-profile-data.delete_request.account_deletion_requested')
);
notify('success', t('delete_request.account_deletion_requested'));
} catch (err) {
notify('error', getErrorMessages(err));
}
@@ -42,23 +39,25 @@ class DeleteMyAccount extends React.Component {
const { requestAccountDeletion, notify } = this.props;
try {
await requestAccountDeletion();
notify(
'success',
t('talk-plugin-profile-data.delete_request.account_deletion_requested')
);
notify('success', t('delete_request.account_deletion_requested'));
} catch (err) {
notify('error', getErrorMessages(err));
}
};
render() {
const { me: { scheduledDeletionDate } } = this.props.root;
const {
me: { scheduledDeletionDate },
settings: { organizationContactEmail },
} = this.props.root;
return (
<div className="talk-plugin-auth--delete-my-account">
<DeleteMyAccountDialog
requestAccountDeletion={this.requestAccountDeletion}
showDialog={this.state.showDialog}
closeDialog={this.closeDialog}
scheduledDeletionDate={scheduledDeletionDate}
organizationContactEmail={organizationContactEmail}
/>
<h3
className={cn(
@@ -66,7 +65,7 @@ class DeleteMyAccount extends React.Component {
'talk-plugin-auth--delete-my-account-description'
)}
>
{t('talk-plugin-profile-data.delete_request.delete_my_account')}
{t('delete_request.delete_my_account')}
</h3>
<p
className={cn(
@@ -74,9 +73,7 @@ class DeleteMyAccount extends React.Component {
'talk-plugin-auth--delete-my-account-description'
)}
>
{t(
'talk-plugin-profile-data.delete_request.delete_my_account_description'
)}
{t('delete_request.delete_my_account_description')}
</p>
<p
className={cn(
@@ -86,7 +83,7 @@ class DeleteMyAccount extends React.Component {
>
{scheduledDeletionDate &&
t(
'talk-plugin-profile-data.delete_request.already_submitted_request_description',
'delete_request.already_submitted_request_description',
moment(scheduledDeletionDate).format('MMM Do YYYY, h:mm:ss a')
)}
</p>
@@ -95,9 +92,7 @@ class DeleteMyAccount extends React.Component {
className={cn(styles.button, styles.secondary)}
onClick={this.cancelAccountDeletion}
>
{t(
'talk-plugin-profile-data.delete_request.cancel_account_deletion_request'
)}
{t('delete_request.cancel_account_deletion_request')}
</Button>
) : (
<Button
@@ -105,7 +100,7 @@ class DeleteMyAccount extends React.Component {
icon="delete"
onClick={this.showDialog}
>
{t('talk-plugin-profile-data.delete_request.delete_my_account')}
{t('delete_request.delete_my_account')}
</Button>
)}
</div>