Closed alexshink closed 3 years ago
@alexshink Sorry, this is not documented properly, the scripts rely on some command-line tools that are not available on Windows, like find
, and the GNU gettext utilities (for example msgmerge
). I recommend trying to execute the scripts in a UNIX-like environment on Windows like git-bash, WSL, WSL2, MINGW or Cygwin.
I'll close this for now as I don't see a way to make the scripts compatible with native Windows.
Hey! It would be really great to have this mentioned in the docs, as it took a good hour for me to find out here that Windows command line isn't supported!
Hello! First of all, thanks for your work.
What is the problem?
Executing
vue-gettext-extract
command results in error:But an empty
locales
directory is created insrc
directory.Details in the screenshot:
How to reproduce the problem
In a clean project created via
@vue/cli
after installing@jshmrtn/vue3-gettext
, inpackage.json
add the line in thescripts
section:At the command line, run the command
gettext:extract
.Environment
Windows 10 Vue 3.0.0 @vue/cli 4.5.10 @jshmrtn/vue3-gettext 1.0.1