Skip to content
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

Using astro-i18next generate with showDefaultLocale does throw an error #162

Open
BaseCrusher opened this issue May 14, 2023 · 2 comments
Open

Comments

@BaseCrusher
Copy link

Describe the bug

When running astro-i18next generate an error is thrown.
It looks to me, like the path is not being resolved correctly.

To Reproduce

  1. Take any example and set showDefaultLocale to true.
  2. Upgrade astro-i18nex to beta.20 or higher.
  3. Move the index.astro to an en subfolder.
  4. Run astro-i18next generate

Expected behavior

astro-i18next generate should generate the translated files.

Screenshots

image

Context (please complete the following information):

  • astro-i18next version: ^1.0.0-beta.20

Possible fixes

The issue is probably in this function:

export const getAstroPagesFullPaths = (

Or here:
const astroPagesFullPaths = showDefaultLocale

@itsmatteomanf
Copy link

Seeing the same behaviour.

@koppk001
Copy link

koppk001 commented Mar 5, 2024

Anybody found a solution on this? I'm hardstuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants