i18n fallback in SSG mode does not generate pages #10957
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: i18n
Related to internalization (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
This may just be me misunderstanding how i18n fallback works in SSG mode, but when i18n fallback is configured, no fallback is created automatically.
With the example in the docs:
The docs say:
When testing this and going to
/fr
where there is no page/fr/index.astro
, it shows shows a 404.I asked kapa.ai in the discord and it seemed to agree it should be created without needing to set up dynamic routes for locale along with
getStaticPaths()
.What's the expected result?
Loading
localhost/fr
should render the/pages/index.astro
file withcurrentLocale
set tofr
(even when no/pages/fr/index.astro
exists).Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qffjm2
Participation
The text was updated successfully, but these errors were encountered: