From c8cf8ebf7c75a40b26fa46c6059dd454c2befac6 Mon Sep 17 00:00:00 2001 From: turupawn Date: Mon, 15 Jan 2024 16:47:20 -0600 Subject: [PATCH] translated the 404 --- public/locales/en/translation.json | 4 ++++ public/locales/es/translation.json | 4 ++++ src/pages/404.astro | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index b706566ff..7f6aeb42a 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -175,6 +175,10 @@ "title": "Follow Us" } }, + "pageNotFound": { + "title": "Page not found", + "text": "We're sorry, but we couldn't find the page you were looking for." + }, "notTranslated": { "notTranslated": "This page has not been translated yet." } diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index 1b1991e28..068d12715 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -175,6 +175,10 @@ "title": "Síguenos" } }, + "pageNotFound": { + "title": "Página no encontrada", + "text": "Lo sentimos, pero no pudimos encontrar la página que buscas." + }, "notTranslated": { "notTranslated": "Esta página no ha sido traducida aún." } diff --git a/src/pages/404.astro b/src/pages/404.astro index 5024718fe..4347fdefe 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,5 +1,5 @@ --- -import i18next, { changeLanguage } from "i18next" +import i18next, { changeLanguage, t } from "i18next" import HomeLayout from "../layouts/HomeLayout.astro" // Should load last used language. @@ -9,8 +9,8 @@ changeLanguage(i18next.language)

404

-

Page not found

-

We're sorry, but we couldn't find the page you were looking for.

+

{t("pageNotFound.title")}

+

{t("pageNotFound.text")}