aboutsummaryrefslogtreecommitdiff
path: root/src/partials
diff options
context:
space:
mode:
Diffstat (limited to 'src/partials')
-rw-r--r--src/partials/Footer.astro4
-rw-r--r--src/partials/Header.astro21
2 files changed, 7 insertions, 18 deletions
diff --git a/src/partials/Footer.astro b/src/partials/Footer.astro
index 82e3bb0..c27035d 100644
--- a/src/partials/Footer.astro
+++ b/src/partials/Footer.astro
@@ -1,7 +1,5 @@
---
-import { useTranslations } from "../i18n";
-
-const t = useTranslations(Astro.currentLocale);
+import t from "../i18n/es.json";
---
<footer>
diff --git a/src/partials/Header.astro b/src/partials/Header.astro
index 8af8ea1..e305492 100644
--- a/src/partials/Header.astro
+++ b/src/partials/Header.astro
@@ -1,22 +1,13 @@
---
-import { getRelativeLocaleUrl } from "astro:i18n";
-import { useTranslations } from "../i18n";
-
-const t = useTranslations(Astro.currentLocale);
+import t from "../i18n/es.json";
---
<header>
- <a href={getRelativeLocaleUrl(Astro.currentLocale!, "")}>{t.header.home}</a>
- <a href={getRelativeLocaleUrl(Astro.currentLocale!, "trajectory")}
- >{t.header.trajectory}</a
- >
- <a href={getRelativeLocaleUrl(Astro.currentLocale!, "portfolio")}
- >{t.header.portfolio}</a
- >
- <a href={getRelativeLocaleUrl("es", "blog")}>{t.header.blog}</a>
- <a href={getRelativeLocaleUrl(Astro.currentLocale!, "contact")}
- >{t.header.contact}</a
- >
+ <a href="/">{t.header.home}</a>
+ <a href="/trajectory">{t.header.trajectory}</a>
+ <a href="/portfolio">{t.header.portfolio}</a>
+ <a href="/blog">{t.header.blog}</a>
+ <a href="/contact">{t.header.contact}</a>
</header>
<style lang="scss">