Skip to content

Commit

Permalink
Merge pull request #1 from tzdesign/docs/fix-readme
Browse files Browse the repository at this point in the history
change readme a bit
  • Loading branch information
tzdesign authored Oct 6, 2023
2 parents 13add33 + 2afe245 commit b325ae5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ Keep in mind that Angular's internationalization and localization features, incl
## Installation

```shell
yarn add deepl-localize
npm install deepl-localize -D
```
or
```shell
yarn add deepl-localize -D
```

Of course you can use it with `npx` as well.

```shell
npx deepl-localize translate -b your/path/en-US.json -l de-DE fr-FR -i de-DE -a "YOUR-DEEPL-API-KEY"
```

## Translation
Expand All @@ -52,7 +62,7 @@ deepl-localize translate -b your/path/en-US.json -l de-DE fr-FR -i de-DE -a "YOU
| -v, --version | output the version number |
| -b, --base <value> | The base file path. |
| -o, --output <value> | The output folder path. If none is given, the base folder is used. |
| -l, --locales [value...] | Locales to translate to. For example de-DE,fr-FR. If none is given, no translation will happen. (default: []) |
| -l, --locales [value...] | Locales to translate to. For example de-DE fr-FR. If none is given, no translation will happen. (default: []) |
| -i, --informal-locales [value...] | Locales to translate less formal. For example de-DE will use du instead of sie. (default: []) |
| -h, --help | display help for command |

Expand All @@ -72,6 +82,6 @@ deepl-localize remove-stale -b your/path/en-US.json -l de-DE fr-FR
| -v, --version | output the version number |
| -b, --base <value> | The base file path. |
| -o, --output <value> | The output folder path. If none is given, the base folder is used. |
| -l, --locales [value...] | Locales to translate to. For example de-DE,fr-FR. If none is given, no translation will happen. (default: []) |
| -l, --locales [value...] | Locales to translate to. For example de-DE fr-FR. If none is given, no translation will happen. (default: []) |
| -d,--dry-run | Just show the stale translations. The script will not remove and just show them. (default: false) |
| -h, --help | display help for command |
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,5 @@
},
"bin": {
"deepl-localize": "./dist/index.js"
},
"version": "1.0.0"
}
}

0 comments on commit b325ae5

Please sign in to comment.