---
import TagDetailPage from '~/components/TagDetailPage.astro';
import { getTagsByLocale } from '~/i18n/posts';

export async function getStaticPaths() {
	const tags = await getTagsByLocale('de');
	return tags.map((tag) => ({ params: { slug: tag.slug }, props: { tag } }));
}

const { tag } = Astro.props;
---

<TagDetailPage locale="de" tag={tag} />
