-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n fallback : existing translated files are not built #10226
Comments
|
My initial debugging shows that the astro/packages/astro/src/core/build/generate.ts Lines 285 to 286 in 7fe2515
I'll continue working on the problem. |
I think I found the problem, the First OverwriteThe astro/packages/astro/src/core/build/generate.ts Lines 285 to 286 in 03242c6
But then astro/packages/astro/src/core/build/generate.ts Lines 327 to 335 in 03242c6
As a result, all three paths are populated with Second OverwriteThen, for loop continues to other routes generated by My solution is to return only the original path at the |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When building a project, routing fallback is working fine for missing translations, generating redirection pages, excepted for index.astro page, redirection page is also built, even if index.astro file exists in translation folder.
All pages are correctly shown when running project in dev mode.
This appeared since 4.2.0 version.
I created a stackblitz reproductible example, base on astro fixture code: astro/packages/astro/test/fixtures/i18n-routing-fallback
What's the expected result?
index.astro page should be correctly built in [locale] folder instead of index.html redirection page.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-mrykc9?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: