Alexandre-Fernandez / astro-i18n

A TypeScript-first internationalization library for Astro.
https://www.npmjs.com/package/astro-i18n
MIT License
249 stars 10 forks source link

The exported `prerender` property is not copied to files generated by `sync` #30

Closed MellKam closed 1 year ago

MellKam commented 1 year ago

My /pages/index.astro

---
import { astroI18n } from "astro-i18n";
astroI18n.init(Astro);

export const prerender = true;
---
...

Generated file (/pages/ua/index.astro):

---
import Page from "../index.astro"

const { props } = Astro
// would be nice to have `export const prerender = true;`
---

<Page {...props} />

Of course, I can just edit them manually, but it would be great to automatically detect exported properties or to be able to enable copying them.

Alexandre-Fernandez commented 1 year ago

Thanks for reporting, I totally forgot about this, I'll add it asap.

Alexandre-Fernandez commented 1 year ago

fixed in v1.6.10