Closed
Description
Describe the bug
lingui extract
returns No locales defined!
when extracting messages on Windows.
To Reproduce
Run lingui extract
on a Windows machine in cmd
.
Additional context
The issue is that locale
returned by
js-lingui/packages/cli/src/api/catalog.js
Line 150 in 0bb80a4
path.sep
is \
while the result from glob.sync
contains paths with forward slashes /
. Replacing path.sep
with /
fixes this specific issue (but my extraction still fails because of a different error).
I would have made a PR if I didn't fear side-effects.