Skip to content

Output directory structure breaks when running multiple times #36

@ChrisDoernen

Description

@ChrisDoernen

Hi,
thanks for the handy tool, exactly what I was looking for.
When I run the command multiple times, the output gets nested below a folder of the locale "de", see screenshot attached.

I use the following command: yarn static-i18n -i en -i de --outputDefault /en/index.html --fixPaths false --output-dir ./website ./website.

When I delete the generated folders ("en/" and "de/") first with rimraf for example, the output is correct. But that prevents live reloading on file change to work (I am using the live-server package) which is a major drawback in the development workflow.

Best
Chris

static-i18n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions