From d94fdf555e4c54cbe2453d55ea1856423c061396 Mon Sep 17 00:00:00 2001 From: guillermoscript Date: Sun, 6 Oct 2024 12:20:21 -0400 Subject: [PATCH] Refactor Spanish translations for login page and reset password form --- app/locales/es/views.ts | 4 ++-- components/auth/ResetPasswordForm.tsx | 16 +++------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/app/locales/es/views.ts b/app/locales/es/views.ts index 4010d7a0..674b360d 100644 --- a/app/locales/es/views.ts +++ b/app/locales/es/views.ts @@ -239,8 +239,8 @@ export default { login: { loginHeader: 'Iniciar sesion', helpText: 'Ingresa tu correo para iniciar sesion.', - forgotPassword: 'Olvidaste tu contraseña?', - dontHaveAccount: 'No tienes cuenta?', + forgotPassword: '¿Olvidaste tu contraseña?', + dontHaveAccount: '¿No tienes cuenta?', description: 'Comienza tu aprendizaje con LMS AI.', form: { email: 'Correo', diff --git a/components/auth/ResetPasswordForm.tsx b/components/auth/ResetPasswordForm.tsx index 32191802..faa36b52 100644 --- a/components/auth/ResetPasswordForm.tsx +++ b/components/auth/ResetPasswordForm.tsx @@ -10,7 +10,6 @@ import { z } from 'zod' import { resetPasswordFun } from '@/actions/auth/authActions' import { useI18n } from '@/app/locales/client' -import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' import { Button } from '@/components/ui/button' import { Form, @@ -137,11 +136,11 @@ export default function ResetPasswordForm({ )} -

- {t('auth.resetPassword.passwordHelp')} -

+

+ {t('auth.resetPassword.passwordHelp')} +

)} /> @@ -155,15 +154,6 @@ export default function ResetPasswordForm({ - {searchParams.error && ( - - Error! - - {searchParams.error} - - - )} -