diff --git a/src/components/About.astro b/src/components/About.astro
index f1ed7ee..98b63d7 100644
--- a/src/components/About.astro
+++ b/src/components/About.astro
@@ -1,22 +1,30 @@
---
-import SinglePage from "../layouts/SinglePage.astro"
+import SinglePage from "../layouts/SinglePage.astro";
-import { dictionary } from "../i18n/dictionary";
import AboutModule from "./AboutModule.astro";
-const { title, description } = dictionary[Astro.currentLocale];
+import { getLangFromUrl, useTranslations } from "../i18n/utils";
+
+const t = useTranslations(getLangFromUrl(Astro.url));
---
+
-
-
-
Lorem
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque consequatur voluptatibus nobis dolores repellendus similique, ut sit odit commodi optio tempore totam, quaerat at distinctio nisi dolore magnam quia perferendis.
-
-
-
Ipsum
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque consequatur voluptatibus nobis dolores repellendus similique, ut sit odit commodi optio tempore totam, quaerat at distinctio nisi dolore magnam quia perferendis.
-
-
-
Dolor
-
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque consequatur voluptatibus nobis dolores repellendus similique, ut sit odit commodi optio tempore totam, quaerat at distinctio nisi dolore magnam quia perferendis.
-
+
+
+ {
+ [0,1,2].map(i =>
+
+
+ {t("about")[i].title}
+
+
+ {t("about")[i].content}
+
+
+ )
+ }
+
diff --git a/src/components/Hero.astro b/src/components/Hero.astro
index b25d628..b103a4a 100644
--- a/src/components/Hero.astro
+++ b/src/components/Hero.astro
@@ -1,26 +1,22 @@
---
import SinglePage from "../layouts/SinglePage.astro";
+import { getLangFromUrl, useTranslations } from "../i18n/utils";
-import { dictionary } from "../i18n/dictionary";
-const { title, description } = dictionary[Astro.currentLocale];
+const t = useTranslations(getLangFromUrl(Astro.url))
---
-
-
+
- Lorem Ipsum
+ {t("hero").title}
- Lorem ipsum dolor, sit amet consectetur adipisicing elit. A suscipit
- facilis doloribus, dicta cupiditate sint nisi ad explicabo cumque
- dolorem quaerat hic aliquid. Iste quia aspernatur nam distinctio,
- animi dolorum?
+ {t("hero").content}