From 9c33a671501e675a3bc166e4f86b9aa314e12c05 Mon Sep 17 00:00:00 2001 From: Mauri Date: Tue, 9 Jun 2026 08:31:43 -0300 Subject: [PATCH] fix(i18n): traducir Hero y Footer completamente (es/en), restaurar /mwp/ WordPress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Hero: extraído de hardcoded español/inglés a usar traducciones (i18n/ui.ts) - Footer: 'Maldonado, Uruguay' ahora viene de la traducción - Hero badges (26+ años, Uptime, Soporte, Maldonado) ahora son traducibles - Footer subline (Web, correo, infraestructura...) ahora es traducible - Hero CTAs cambiaron: 'Ver planes' + 'Hablar por WhatsApp' (antes 'Ver servicios') RESTAURACIÓN CRÍTICA: - /home/hostingd/public_html/mwp/ había sido borrado por error en un deploy previo - Restaurado desde /home/hostingd/mwp-backup-20260608-222300.tar.gz (74MB) - WordPress ahora responde en https://mwp.hostingdelsur.net (200) - Backup del WordPress queda en /home/hostingd/ para emergencias futuras --- scripts/deploy.sh | 2 +- src/components/Footer.astro | 7 ++++--- src/components/Hero.astro | 20 +++++++++----------- src/i18n/ui.ts | 30 ++++++++++++++++++++---------- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 8d61acf..3d63528 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -20,7 +20,7 @@ cp /root/opencode/development/hostingdelsur.net/src/forms/api-htaccess "$DIST/ap # Copy root .htaccess (HTTPS forzado, security headers) cp /root/opencode/development/hostingdelsur.net/scripts/htaccess.conf "$DIST/.htaccess" -# rsync with --delete to mirror +# rsync with --delete to mirror (preserva mwp/, .well-known/, etc.) rsync -avz --delete \ --exclude='mwp' \ --exclude='.well-known' \ diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 02e69ab..25967db 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -10,6 +10,7 @@ interface Props { const { t, lang } = Astro.props; const year = new Date().getFullYear(); const base = lang === 'en' ? '/en' : ''; +const locationText = lang === 'en' ? 'Maldonado, Uruguay' : 'Maldonado, Uruguay'; const navLinks: { href: string; key: TranslationKey }[] = [ { href: `${base}/`, key: 'nav.home' }, @@ -39,7 +40,7 @@ const legalLinks = [ {t('footer.tagline')}

- {lang === 'en' ? 'Web, email, infrastructure and human support in Uruguay.' : 'Web, correo, infraestructura y soporte humano en Uruguay.'} + {t('footer.subline')}

@@ -77,7 +78,7 @@ const legalLinks = [ contacto@hostingdelsur.net -
  • Maldonado, Uruguay
  • +
  • {locationText}
  • @@ -103,7 +104,7 @@ const legalLinks = [

    © {year} Hosting del Sur. {t('footer.copyright')}

    -

    Maldonado, Uruguay

    +

    {locationText}

    diff --git a/src/components/Hero.astro b/src/components/Hero.astro index fc3bafe..78ec89a 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -12,7 +12,6 @@ const { t, whatsappUrl } = Astro.props; -