Skip to content

Commit

Permalink
chore: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhada committed Sep 24, 2024
1 parent 5d70c47 commit d031cb4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
7 changes: 3 additions & 4 deletions public/locales/en/UserEdit.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"notification frequency": "Notification Frequency",
"new password": "New Password",
"confirm password": "Confirm Password",
"Change password": "Change your password",
"Change your password": "Change your password",
"change password": "Change your password",
"save": "Save",
"save new password": "Save new password",
"Password changed successfully!": "Password changed successfully!",
"Forgot your password?": "Forgot your password?",
"password changed successfully": "Password changed successfully!",
"forgot your password": "Forgot your password?",
"OK": "OK"
}
7 changes: 3 additions & 4 deletions public/locales/es/UserEdit.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"notification frequency": "Frecuencia de notificación",
"new password": "Nueva contraseña",
"confirm password": "Confirmar Contraseña",
"Change password": "Cambiar tu contraseña",
"Change your password": "Cambiar tu contraseña",
"change password": "Cambiar tu contraseña",
"save": "Ahorrar",
"save new password": "Guardar nueva contraseña",
"Password changed successfully!": "¡Contraseña cambiada exitosamente!",
"Forgot your password?": "¿Olvidaste tu contraseña?",
"password changed successfully": "¡Contraseña cambiada exitosamente!",
"forgot your password": "¿Olvidaste tu contraseña?",
"OK": "OK"
}
12 changes: 4 additions & 8 deletions src/containers/UserEdit/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class UserEdit extends React.Component {
{canChangePassword && (
<div className={css(styles.container)}>
<Button variant="outlined" onClick={this.handleClick}>
<Trans>Change password</Trans>
{t("change password")}
</Button>
</div>
)}
Expand All @@ -346,9 +346,7 @@ class UserEdit extends React.Component {
open={this.state.changePasswordDialog}
onClose={this.handleClose}
>
<DialogTitle>
<Trans>Change your password</Trans>
</DialogTitle>
<DialogTitle>{t("change password")}</DialogTitle>
<DialogContent>
<UserEdit
authType={UserEditMode.Change}
Expand All @@ -367,9 +365,7 @@ class UserEdit extends React.Component {
onClose={this.handleClose}
>
<DialogTitle>
{this.state.successMessage || (
<Trans>Password changed successfully!</Trans>
)}
{this.state.successMessage || t("password changed successfully")}
</DialogTitle>
<DialogActions>
<Button
Expand All @@ -388,7 +384,7 @@ class UserEdit extends React.Component {
style={{ marginTop: 25, cursor: "pointer" }}
onClick={this.props.startRequestReset}
>
<Trans>Forgot your password?</Trans>
{t("forgot your password")}
</div>
)}
<SaveNotificationSettingsAlert
Expand Down

0 comments on commit d031cb4

Please sign in to comment.