docs: fixes path for extract npm script example (#89)
The example script gives the following error on windows:
Saving: <project dir>\src\assets\i18n\*.json
- sorted strings
fs.js:652
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '<project dir>\src\assets\i18n\*.json'
This commit is contained in:
committed by
Kim Biesbjerg
parent
64ebb5e6e8
commit
7d5d38e6a1
@@ -12,7 +12,7 @@ Install the package in your project:
|
|||||||
Add an `extract` script to your project's `package.json`:
|
Add an `extract` script to your project's `package.json`:
|
||||||
```
|
```
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"extract": "ngx-translate-extract --input ./src --output ./src/assets/i18n/*.json --clean --sort --format namespaced-json"
|
"extract": "ngx-translate-extract --input ./src --output ./src/assets/i18n/ --clean --sort --format namespaced-json"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
You can now run `npm run extract` to extract strings.
|
You can now run `npm run extract` to extract strings.
|
||||||
|
|||||||
Reference in New Issue
Block a user