You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contains the entire path, not just the locale name. This is because 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.
The text was updated successfully, but these errors were encountered:
MartijnHols
changed the title
Fails to extract on Windows (2.4) due to wrong path.sep used
Fails to extract on Windows due to wrong path.sep used (2.4)
Aug 9, 2018
Describe the bug
lingui extract
returnsNo locales defined!
when extracting messages on Windows.To Reproduce
Run
lingui extract
on a Windows machine incmd
.Additional context
The issue is that
locale
returned byjs-lingui/packages/cli/src/api/catalog.js
Line 150 in 0bb80a4
path.sep
is\
while the result fromglob.sync
contains paths with forward slashes/
. Replacingpath.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.
The text was updated successfully, but these errors were encountered: