diff --git a/plugins/talk-plugin-auth/client/profile-settings/components/ChangeUsernameDialog.js b/plugins/talk-plugin-auth/client/profile-settings/components/ChangeUsernameDialog.js index a561106c9..244dba00a 100644 --- a/plugins/talk-plugin-auth/client/profile-settings/components/ChangeUsernameDialog.js +++ b/plugins/talk-plugin-auth/client/profile-settings/components/ChangeUsernameDialog.js @@ -4,6 +4,7 @@ import cn from 'classnames'; import styles from './ChangeUsernameDialog.css'; import InputField from './InputField'; import { Button, Dialog } from 'plugin-api/beta/client/components/ui'; +import { t } from 'plugin-api/beta/client/services'; class ChangeUsernameDialog extends React.Component { state = { @@ -37,18 +38,21 @@ class ChangeUsernameDialog extends React.Component { × -

Confirm Username Change

+

+ {t('talk-plugin-auth.change_username.confirm_username_change')} +

- You are attempting to change your username. Your new username will - appear on all of your past and future comments. + {t('talk-plugin-auth.change_username.description')}

- Old Username: {this.props.username} + {t('talk-plugin-auth.change_username.old_username')}:{' '} + {this.props.username} - New Username: {this.props.formData.newUsername} + {t('talk-plugin-auth.change_username.new_username')}:{' '} + {this.props.formData.newUsername}
@@ -67,8 +71,7 @@ class ChangeUsernameDialog extends React.Component { validationType="username" > - Note: You will not be able to change your username again for 14 - days + {t('talk-plugin-auth.change_username.bottom_note')}
@@ -78,7 +81,7 @@ class ChangeUsernameDialog extends React.Component { className={styles.confirmChanges} onClick={this.confirmChanges} > - Confirm Changes + {t('talk-plugin-auth.change_username.confirm_changes')}
diff --git a/plugins/talk-plugin-auth/client/translations.yml b/plugins/talk-plugin-auth/client/translations.yml index 84dc4e320..0d05d45c5 100644 --- a/plugins/talk-plugin-auth/client/translations.yml +++ b/plugins/talk-plugin-auth/client/translations.yml @@ -145,6 +145,12 @@ en: save: "Save" edit_profile: "Edit Profile" cancel: "Cancel" + confirm_username_change: "Confirm Username Change" + description: "You are attempting to change your username. Your new username will appear on all of your past and future comments." + old_username: "Old Username" + new_username: "New Username" + bottom_note: "Note: You will not be able to change your username again for 14 days" + confirm_changes: "Confirm Changes" de: talk-plugin-auth: login: