We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
npx astro-i18next generate
Describe the bug
Since src/pages/[lang]/404.astro will never be displayed, I have written custom logic in src/pages/404.astro.
src/pages/[lang]/404.astro
src/pages/404.astro
const pathname = Astro.url.pathname; if (pathname.startsWith("/zh/")) { changeLanguage("zh"); } else { changeLanguage("en"); }
However, running npx astro-i18next generate will break this logic.
Expected behavior
Ignore 404.astro file
Screenshots
Context (please complete the following information):
The text was updated successfully, but these errors were encountered:
By the way, please add support for .ts and .tsx files to the generate command.
.ts
.tsx
generate
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Since
src/pages/[lang]/404.astro
will never be displayed, I have written custom logic insrc/pages/404.astro
.However, running
npx astro-i18next generate
will break this logic.Expected behavior
Ignore 404.astro file
Screenshots
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: