From 6b740867d6f887f286260b997ee0ed87d487268e Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Wed, 25 Mar 2020 12:42:13 +0100 Subject: [PATCH] Update README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ecc5a46..1a93ba2 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Add a script to your project's `package.json`: ```json ... "scripts": { - "extract-i18n": "ngx-translate-extract --input ./src --output ./src/assets/i18n/ --clean --sort --format namespaced-json" + "extract-i18n": "ngx-translate-extract --input ./src --output ./src/assets/i18n/strings.json --key-as-default-value --clean --sort --format namespaced-json" } ... ``` @@ -25,11 +25,11 @@ You can now run `npm run extract-i18n` and it will extract strings from your pro **Extract from dir and save to file** -`ngx-translate-extract --input ./src --output ./src/assets/i18n/template.json` +`ngx-translate-extract --input ./src --output ./src/assets/i18n/strings.json` **Extract from multiple dirs** -`ngx-translate-extract --input ./src-a ./src-b --output ./src/assets/i18n/template.json` +`ngx-translate-extract --input ./src-a ./src-b --output ./src/assets/i18n/strings.json` **Extract and save to multiple files using path expansion**