astro-i18next
astro-i18next copied to clipboard
Using `astro-i18next generate` with `showDefaultLocale` does throw an error
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
- Take any example and set
showDefaultLocale
to true. - Upgrade
astro-i18nex
tobeta.20
or higher. - Move the
index.astro
to anen
subfolder. - Run
astro-i18next generate
Expected behavior
astro-i18next generate
should generate the translated files.
Screenshots
Context (please complete the following information):
-
astro-i18next
version:^1.0.0-beta.20
Possible fixes
The issue is probably in this function: https://github.com/yassinedoghri/astro-i18next/blob/681e8384270b2b9ad384f83411075c9c3ee33f2d/src/cli/utils.ts#L123 Or here: https://github.com/yassinedoghri/astro-i18next/blob/681e8384270b2b9ad384f83411075c9c3ee33f2d/src/cli/generate.ts#L33
Seeing the same behaviour.
Anybody found a solution on this? I'm hardstuck