diff --git a/client/routes/account/users.jsx b/client/routes/account/users.jsx index 2c29f38c..63497d90 100644 --- a/client/routes/account/users.jsx +++ b/client/routes/account/users.jsx @@ -211,10 +211,13 @@ const Users = () => { const openDeleteModal = (user) => { setSuccess(false); openConfirmModal({ - title: 'Delete ' + user.username, + title: `${t('account.users.delete')} ${user.username}`, centered: true, - children: Are you sure you want to delete this user?, - labels: { confirm: 'Delete user', cancel: "No don't delete it" }, + children: {t('account.users.do_you_want_delete')}, + labels: { + confirm: t('account.users.delete_user'), + cancel: t('account.users.dont_delete_user'), + }, confirmProps: { color: 'red' }, onConfirm: () => onDeleteUser(user), }); @@ -239,7 +242,7 @@ const Users = () => { if (!users.length) { return ( - + ); } @@ -251,36 +254,36 @@ const Users = () => { {success && } } - placeholder="Username" + placeholder={t('account.users.username')} disabled={modalState === 'update'} {...form.getInputProps('username')} /> } - placeholder="Email" + placeholder={t('account.users.email')} {...form.getInputProps('email')} /> {modalState === 'add' && ( } - placeholder="Password" + placeholder={t('account.users.password')} {...form.getInputProps('password')} /> )}