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

l function does not work (anymore) #11

Closed narduin closed 1 year ago

narduin commented 1 year ago

I don't know if it's astro@1.7.0 or something else but I think the route translation using the l function is broken.

I tried using translated routes in astro.i18n.config and in folders with {route} but neither seem to work anymore.

I reverted back to astro-i18n@1.3.2 and it seemed to work as expected with astro@1.7.2.

The demo repo is up to date with an example.

Alexandre-Fernandez commented 1 year ago

I'll check this after, I probably broke it yesterday by moving the loading to the build time. I'll try to fix this today. Thanks for the reproductions by the way, these have been very useful.

Alexandre-Fernandez commented 1 year ago

everything should be fixed in 1.4.5