I have a project with config:
i18n: {
locales: ['en', 'de', 'sv', 'fi', 'pl'],
defaultLocale: 'en',
routing: {
prefixDefaultLocale: false,
redirectToDefaultLocale: true,
fallbackType: "rewrite",
},
fallback: {
sv: 'en',
fi: 'en',
pl: 'en',
de: 'en',
},
},
Where all pages exist directly under pages/ and all translations are done by substituting strings, i.e. I want all pages to generate fallbacks for all locales other than en.
However, I do not get fallbacks for all pages. One of my pages is never generating fallbacks, and it perhaps seem like it is related to the page name. I have 4 pages under x/y/, and 3 of them work as expected, but the 4th one d.astro never results in a fallback. The same happens when I switch names on two pages, i.e. c.astro becomes d.astro and vice versa. So the page that worked before no longer works, i.e. it does not seem related to the content on the page.
I can add that this is only occurs during the build process. When I run the dev server, everything seem to be working as expected.
Where should I begin investigating this issue? I have not yet been able to generate a reproducible example. It works for most pages, but not for all pages under this particular map structure.