diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 6226588..680f626 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -187,21 +187,21 @@ const es = { locked_description: "Tu nivel actual es {{tier}}. Reclama tu NFT para desbloquear.", anomaly: - "Score anómalo detectado. Los datos serán revisados antes de habilitar operaciones.", - debt_label: "Deuda Total a Pagar", + "Puntaje anómalo detectado. Los datos serán revisados antes de habilitar operaciones.", + debt_label: "Deuda total a pagar", expires_in: "Vence en: {{time}}", - limit_label: "Límite de crédito disponible según tu SBT", - withdraw_button: "Retirar a mi Wallet", + limit_label: "Límite de crédito disponible según tu NFT", + withdraw_button: "Retirar a mi wallet", pay_button: "Pagar {{amount}} XLM", authorizing: "Autorizando...", processing: "Procesando...", - frozen_title: "¡CUENTA CONGELADA!", - frozen_description: "Tu plazo de pago ha expirado. Deuda pendiente:", - contact_support: "Contactar a Soporte", + frozen_title: "¡Cuenta congelada!", + frozen_description: "Tu plazo de pago venció. Deuda pendiente:", + contact_support: "Contactar a soporte", footer_network: - "El retiro genera una transacción en la red Testnet de Stellar.", + "El retiro genera una transacción en la red de Stellar.", footer_interest: - "Total a pagar al vencer (1 mes): {{amount}} XLM (Incluye 5% interés)", + "Total a pagar al vencer (1 mes): {{amount}} XLM (incluye 5% interés)", tiers: { "0": "Bronce", "1": "Plata", @@ -219,8 +219,8 @@ const es = { cancelled: "Cancelaste la firma. No se realizó el retiro.", generic: "No pudimos procesar el retiro ahora. Intenta nuevamente en unos segundos.", - connect_wallet: "Debes conectar tu billetera primero", - wrong_account: "Cuenta incorrecta. Cambia en Freighter a: {{wallet}}", + connect_wallet: "Conecta tu wallet primero", + wrong_account: "Cuenta incorrecta. Cambia a {{wallet}} en Freighter", repay_generic: "No se pudo realizar el pago. Revisa tus fondos.", }, }, @@ -256,7 +256,7 @@ const es = { tx_loan: "Préstamo recibido", tx_repay: "Pago de préstamo", tx_mint: "SBT Nivel {{level}}", - tx_withdrawal: "Retiro de Crédito", + tx_withdrawal: "Retiro de crédito", }, // ─── Wallet setup modal ────────────────────────────────────────────────────── @@ -268,7 +268,7 @@ const es = { connect_freighter: "Conectar con Freighter", freighter_not_detected: "Freighter no detectado", freighter_not_detected_description: - "Instala la extensión o continúa con Albedo, una wallet web que no requiere instalación.", + "Instala la extensión o usa Albedo, una wallet web sin instalación.", install_freighter_alt: "Instalar Freighter en su lugar", install_freighter_link: "¿No tienes Freighter? Descárgala aquí", error_cancelled: "Conexión cancelada. Puedes intentarlo de nuevo cuando quieras.", @@ -331,7 +331,7 @@ const es = { mint_button_signing: "Firmando en Soroban...", mint_button_no_wallet: "Conecta tu wallet para mintear", mint_button_no_balance: "Deposita USDC para evaluar", - mint_button_max_tier: "Nivel maximo alcanzado", + mint_button_max_tier: "Nivel máximo alcanzado", mint_button_already_has: "Ya tienes {{tier}}. Espera al siguiente nivel", max_tier_badge: "Nivel Máximo Alcanzado 💎", @@ -358,9 +358,9 @@ const es = { menu_notifications_detail: "Activadas", menu_help: "Centro de ayuda", menu_logout: "Cerrar sesión", - toast_minted_title: "NFT minteado con exito", + toast_minted_title: "NFT minteado con éxito", toast_minted_description: "Subiste a nivel {{level}}.", - toast_error_connection_title: "Conexion inestable", + toast_error_connection_title: "Conexión inestable", toast_error_connection_description: "No pudimos conectar con la red de Stellar. Intenta nuevamente en unos segundos.", mint_feedback: { @@ -368,7 +368,7 @@ const es = { insufficient_level_description: "Sigue ahorrando y vuelve a intentar.", already_minted_title: "Nivel ya minteado", already_minted_description: - "Ya tienes el NFT {{level}}. Sube tu reputacion para mintear el siguiente nivel.", + "Ya tienes el NFT {{level}}. Sube tu reputación para mintear el siguiente nivel.", generic_title: "No se pudo mintear", generic_description: "No pudimos mintear tu NFT en este momento. Intentalo nuevamente en unos segundos.", @@ -410,10 +410,10 @@ const es = { saved_addr_title: "Direcciones guardadas", saved_addr_soon: "Próximamente…", saved_addr_empty: "Guarda direcciones frecuentes para retiros más rápidos.", - modal_confirm_button: "Confirmar Retiro", + modal_confirm_button: "Confirmar retiro", modal_all_button: "TODO", modal_signing: "Procesando...", - modal_success_title: "Retiro Exitoso", + modal_success_title: "¡Retiro exitoso!", modal_error_title: "No se pudo completar", error_insufficient: "Saldo insuficiente", min_hint_wallet: "Mínimo: 1 USDC ($1 USD)", @@ -532,8 +532,8 @@ const es = { // ─── 404 ───────────────────────────────────────────────────────────────────── not_found: { title: "404", - message: "Oops! Page not found", - return_home: "Return to Home", + message: "¡Ups! Página no encontrada", + return_home: "Volver al inicio", }, } as const; diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index 7bc2234..f560e8f 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -1,8 +1,10 @@ import { useLocation } from "react-router-dom"; import { useEffect } from "react"; +import { useTranslation } from "react-i18next"; const NotFound = () => { const location = useLocation(); + const { t } = useTranslation(); useEffect(() => { console.error("404 Error: User attempted to access non-existent route:", location.pathname); @@ -12,9 +14,9 @@ const NotFound = () => {

404

-

Oops! Page not found

+

{t("not_found.message")}

- Return to Home + {t("not_found.return_home")}