diff --git a/src/components/Showcase.astro b/src/components/Showcase.astro index 2570790..034099f 100644 --- a/src/components/Showcase.astro +++ b/src/components/Showcase.astro @@ -8,6 +8,6 @@ const { title, description } = dictionary[Astro.currentLocale];
- +
diff --git a/src/components/ShowcaseTabs.jsx b/src/components/ShowcaseTabs.jsx index b0d63d9..cbe0749 100644 --- a/src/components/ShowcaseTabs.jsx +++ b/src/components/ShowcaseTabs.jsx @@ -12,20 +12,22 @@ import { TabsTrigger, } from "../components/ui/tabs"; -import { data } from "../content/showcase"; +import { dictionary } from "../i18n/dictionary"; -export function ShowcaseTabs() { + +export function ShowcaseTabs({ currentLocale }) { + const { showcase } = dictionary[currentLocale]; return ( - - {data.map((item) => ( + + {showcase.map((item) => ( {item.handle} ))} - {data.map((item) => ( + {showcase.map((item) => ( diff --git a/src/content/showcase.js b/src/content/showcase.js deleted file mode 100644 index bb322e6..0000000 --- a/src/content/showcase.js +++ /dev/null @@ -1,29 +0,0 @@ -export const data = [ - { - value: "thisPage", - handle: "Projekt 1", - title: "This Page", - href: "/potato", - description: "random text os iuoiu fsd ufiodsu foid sufo dsufois dufoisd eee sfsdffsdfsd sd sd ds dsfsv sd dss ds ds ufiosdufi osdufsdfsd iofusdoifudu siofsdfids ofudsiouoi", - image: "/temp.jpg", - imageAlt: "text" - }, - { - value: "thatPage", - title: "That Page", - handle: "Projekt 2", - href: "/potat2", - description: "random text", - image: "/temp.jpg", - imageAlt: "text" - }, - { - value: "otherPage", - title: "Other Page", - handle: "Projekt 3", - href: "/kartoffeln", - description: "random text", - image: "/temp.jpg", - imageAlt: "text" - }, - ]; diff --git a/src/i18n/cs.js b/src/i18n/cs.js index 3769d8a..59cd879 100644 --- a/src/i18n/cs.js +++ b/src/i18n/cs.js @@ -1,3 +1,33 @@ export const cs = { - title: "CS Test", -}; \ No newline at end of file + title: "CS Test", + showcase: [ + { + value: "thisPage", + handle: "Projekt 1", + title: "This Page", + href: "/potato", + description: + "random text os iuoiu fsd ufiodsu foid sufo dsufois dufoisd eee sfsdffsdfsd sd sd ds dsfsv sd dss ds ds ufiosdufi osdufsdfsd iofusdoifudu siofsdfids ofudsiouoi", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "thatPage", + title: "That Page", + handle: "Projekt 2", + href: "/potat2", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "otherPage", + title: "Other Page", + handle: "Projekt 3", + href: "/kartoffeln", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + ], +}; diff --git a/src/i18n/de.js b/src/i18n/de.js index d909d71..eb628ba 100644 --- a/src/i18n/de.js +++ b/src/i18n/de.js @@ -1,3 +1,34 @@ export const de = { title: "DE Test", -}; \ No newline at end of file + showcase: [ + { + value: "thisPage", + handle: "Projekt 1 DE", + title: "This Page", + href: "/potato", + description: + "random text os iuoiu fsd ufiodsu foid sufo dsufois dufoisd eee sfsdffsdfsd sd sd ds dsfsv sd dss ds ds ufiosdufi osdufsdfsd iofusdoifudu siofsdfids ofudsiouoi", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "thatPage", + title: "That Page", + handle: "Projekt 2 DE", + href: "/potat2", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "otherPage", + title: "Other Page", + handle: "Projekt 3 DE", + href: "/kartoffeln", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + ], + }; + \ No newline at end of file diff --git a/src/i18n/en.js b/src/i18n/en.js index 4c08b8f..9e08817 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -1,3 +1,34 @@ export const en = { title: "EN Test", -}; \ No newline at end of file + showcase: [ + { + value: "thisPage", + handle: "Projekt 1 EN", + title: "This Page", + href: "/potato", + description: + "random text os iuoiu fsd ufiodsu foid sufo dsufois dufoisd eee sfsdffsdfsd sd sd ds dsfsv sd dss ds ds ufiosdufi osdufsdfsd iofusdoifudu siofsdfids ofudsiouoi", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "thatPage", + title: "That Page", + handle: "Projekt 2 EN", + href: "/potat2", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "otherPage", + title: "Other Page", + handle: "Projekt 3 EN", + href: "/kartoffeln", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + ], + }; + \ No newline at end of file diff --git a/src/i18n/fr.js b/src/i18n/fr.js index ce595a0..2e7a554 100644 --- a/src/i18n/fr.js +++ b/src/i18n/fr.js @@ -1,3 +1,34 @@ export const fr = { title: "FR Test", -}; \ No newline at end of file + showcase: [ + { + value: "thisPage", + handle: "Projekt 1 FR", + title: "This Page", + href: "/potato", + description: + "random text os iuoiu fsd ufiodsu foid sufo dsufois dufoisd eee sfsdffsdfsd sd sd ds dsfsv sd dss ds ds ufiosdufi osdufsdfsd iofusdoifudu siofsdfids ofudsiouoi", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "thatPage", + title: "That Page", + handle: "Projekt 2 FR", + href: "/potat2", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + { + value: "otherPage", + title: "Other Page", + handle: "Projekt 3 FR", + href: "/kartoffeln", + description: "random text", + image: "/temp.jpg", + imageAlt: "text", + }, + ], + }; + \ No newline at end of file