astro 2.4.4 breaks i18n, reverted to 2.4.3
This commit is contained in:
parent
c3ce3f9e38
commit
4ec6b01162
8 changed files with 38 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { l, t, astroI18n } from "astro-i18n";
|
||||
import { astroI18n } from "astro-i18n";
|
||||
astroI18n.init(Astro);
|
||||
|
||||
import { getCollection } from "astro:content";
|
||||
|
@ -21,5 +21,6 @@ const { article } = Astro.props;
|
|||
---
|
||||
|
||||
<BaseLayout pageTitle={article.data.title}>
|
||||
{article.data.lang}
|
||||
<EditorialContent content={article} />
|
||||
</BaseLayout>
|
9
src/pages/en/articles/[...slug].astro
Normal file
9
src/pages/en/articles/[...slug].astro
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
import Page from "../../articles/[...slug].astro"
|
||||
|
||||
export { getStaticPaths } from "../../articles/[...slug].astro"
|
||||
|
||||
const { props } = Astro
|
||||
---
|
||||
|
||||
<Page {...props} />
|
|
@ -1,9 +0,0 @@
|
|||
---
|
||||
import Page from "../../articles/[slug].astro"
|
||||
|
||||
export { getStaticPaths } from "../../articles/[slug].astro"
|
||||
|
||||
const { props } = Astro
|
||||
---
|
||||
|
||||
<Page {...props} />
|
Loading…
Add table
Add a link
Reference in a new issue