Open BaseCrusher opened 1 year ago
Describe the bug
When running astro-i18next generate an error is thrown. It looks to me, like the path is not being resolved correctly.
astro-i18next generate
To Reproduce
showDefaultLocale
astro-i18nex
beta.20
index.astro
en
Expected behavior
astro-i18next generate should generate the translated files.
Screenshots
Context (please complete the following information):
astro-i18next
^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
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
showDefaultLocale
to true.astro-i18nex
tobeta.20
or higher.index.astro
to anen
subfolder.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