Skip to content

Commit

Permalink
fix: fixed locale usage for BlogList Component
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankoehn committed Jan 7, 2025
1 parent 5c48a23 commit a7b58ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default async function AuthorPage({
}: Readonly<{
params: Promise<{ slug: string; locale: TLocale }>;
}>) {
const [{ slug }, { isEnabled: draft }] = await Promise.all([
const [{ slug, locale }, { isEnabled: draft }] = await Promise.all([
params,
draftMode(),
]);
Expand All @@ -68,6 +68,7 @@ export default async function AuthorPage({
className="pt-10 lg:pt-16"
authorSlug={slug}
pagination={false}
locale={locale}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default async function CategoryPage({
<BlogList
className="pt-10 lg:pt-16"
category={category.id}
locale={locale}
pagination={false}
/>
</div>
Expand Down

0 comments on commit a7b58ba

Please sign in to comment.