-
Notifications
You must be signed in to change notification settings - Fork 37
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
Doesn't work with nested routes? #135
Comments
Hey, this is probably because of Windows. In the error, it shows a wrong path: |
# [1.0.0-beta.19](v1.0.0-beta.18...v1.0.0-beta.19) (2023-03-05) ### Bug Fixes * add levels to relative path in script tag ([1203d42](1203d42)), closes [#129](#129) * use unjs/pathe to resolve generated localized files paths across OS ([da80a8d](da80a8d)), closes [#135](#135) ### Reverts * **i18next-peer:** reset i18next as package dependency ([7906e19](7906e19)), closes [#131](#131)
🎉 This issue has been resolved in version 1.0.0-beta.19 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi, appreciate the quick reply, however I still get the same error after using 1.0.0-beta.19 on Windows. Error message:
|
Sorry, I cannot test on Windows so I fixed what I thought was the issue. But I guess I was wrong. I'm reopening, hopefully I can understand what's going on soon. Would be great if anyone could help debug this on Windows. |
@yassinedoghri for more details, its the line 134 |
@hailetrung Thank you for debugging, it's super useful! I've patched it using |
# [1.0.0-beta.20](v1.0.0-beta.19...v1.0.0-beta.20) (2023-03-09) ### Bug Fixes * add missing `script` to regex in resolveRelativePathsLevel ([9288efe](9288efe)), closes [#129](#129) * get astro pages' full paths using fdir's withFullPaths instead of withRelativePaths ([92a5178](92a5178)), closes [#135](#135) ### Features * make base path for i18next resources configurable ([4e4b057](4e4b057))
🎉 This issue has been resolved in version 1.0.0-beta.20 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@kristianhnielsen @hailetrung Please let me know if it works on beta.20 |
@yassinedoghri |
# [1.0.0-beta.21](v1.0.0-beta.20...v1.0.0-beta.21) (2023-03-09) ### Bug Fixes * resolve astroFileFullPath to extract relative astroFilePath on Windows ([c23cd27](c23cd27)), closes [#135](#135)
🎉 This issue has been resolved in version 1.0.0-beta.21 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@hailetrung Should be good in beta.21 then 🤞, thank you! |
# [1.0.0-beta.19](yassinedoghri/astro-i18next@v1.0.0-beta.18...v1.0.0-beta.19) (2023-03-05) ### Bug Fixes * add levels to relative path in script tag ([1203d42](yassinedoghri/astro-i18next@1203d42)), closes [#129](yassinedoghri/astro-i18next#129) * use unjs/pathe to resolve generated localized files paths across OS ([da80a8d](yassinedoghri/astro-i18next@da80a8d)), closes [#135](yassinedoghri/astro-i18next#135) ### Reverts * **i18next-peer:** reset i18next as package dependency ([7906e19](yassinedoghri/astro-i18next@7906e19)), closes [#131](yassinedoghri/astro-i18next#131)
# [1.0.0-beta.20](yassinedoghri/astro-i18next@v1.0.0-beta.19...v1.0.0-beta.20) (2023-03-09) ### Bug Fixes * add missing `script` to regex in resolveRelativePathsLevel ([9288efe](yassinedoghri/astro-i18next@9288efe)), closes [#129](yassinedoghri/astro-i18next#129) * get astro pages' full paths using fdir's withFullPaths instead of withRelativePaths ([92a5178](yassinedoghri/astro-i18next@92a5178)), closes [#135](yassinedoghri/astro-i18next#135) ### Features * make base path for i18next resources configurable ([4e4b057](yassinedoghri/astro-i18next@4e4b057))
# [1.0.0-beta.21](yassinedoghri/astro-i18next@v1.0.0-beta.20...v1.0.0-beta.21) (2023-03-09) ### Bug Fixes * resolve astroFileFullPath to extract relative astroFilePath on Windows ([c23cd27](yassinedoghri/astro-i18next@c23cd27)), closes [#135](yassinedoghri/astro-i18next#135)
Describe the bug
It seems that it cannot read/generate routes nested in the
pages/
dir. I couldn't find any examples or documentation on this.It generates all other routes directly located in
pages/
correctly.Any solution or docs reference is much appreciated.
To Reproduce
I used the exampes/basic, added a
hello
folder with anindex.astro
, and runnpx astro-i18next generate
.Context (please complete the following information):
astro-i18next
version: 1.0.0-beta.18astro
version: 2.0.15The text was updated successfully, but these errors were encountered: