Skip to content

Commit c4824de

Browse files
committed
Improved --target-langs description
1 parent bd77e31 commit c4824de

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

translate-messages/docs/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ _Note: Any messages.json in the [`chrome.i18n`](https://developer.chrome.com/doc
3939

4040
Options can be set by using command-line arguments:
4141

42-
| Option | Description | Example
43-
| ---------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------
44-
| `-d`, `--locales-dir` | Name of the folder containing locale files (default: `_locales`) | `--locales-dir=_messages`
45-
| `-t`, `--target-langs` | Comma-separated list of languages to include (default: all [`supported_locales`][supported-locales]) | `--target-langs=en,es,fr`
46-
| `-k`, `--keys` | Comma-separated list of keys to translate | `--keys=app_DESC,err_NOT_FOUND`
47-
| `--exclude-langs` | Comma-separated list of languages to exclude | `--exclude-langs=en,es`
48-
| `--exclude-keys` | Comma-separated list of keys to ignore | `--exclude-keys=app_NAME,author`
49-
| `-i`, `--init` | Create `.translate-msgs.config.jsonc` in project root to store default options |
50-
| `-f`, `--force` | Force overwrite of existing config file when using `--init` |
51-
| `-W`, `--no-wizard` | Skip interactive prompts during start-up |
52-
| `-h`, `--help` | Show help screen |
42+
| Option | Description | Example
43+
| ---------------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------
44+
| `-d`, `--locales-dir` | Name of the folder containing locale files (default: `_locales`) | `--locales-dir=_messages`
45+
| `-t`, `--target-langs` | Comma-separated list of languages to translate to (default: all [`supported_locales`][supported-locales]) | `--target-langs=en,es,fr`
46+
| `-k`, `--keys` | Comma-separated list of keys to translate | `--keys=app_DESC,err_NOT_FOUND`
47+
| `--exclude-langs` | Comma-separated list of languages to exclude | `--exclude-langs=en,es`
48+
| `--exclude-keys` | Comma-separated list of keys to ignore | `--exclude-keys=app_NAME,author`
49+
| `-i`, `--init` | Create `.translate-msgs.config.jsonc` in project root to store default options |
50+
| `-f`, `--force` | Force overwrite of existing config file when using `--init` |
51+
| `-W`, `--no-wizard` | Skip interactive prompts during start-up |
52+
| `-h`, `--help` | Show help screen |
5353

5454
[supported-locales]: https://github.com/adamlui/python-utils/blob/translate-messages-1.2.0/translate-messages/src/translate_messages/package_data.json#L21-L26
5555

translate-messages/src/translate_messages/lib/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
),
1111
target_langs=sn(
1212
args=['-t', '--target-langs', '--target-lang', '--include-langs', '--include-lang'],
13-
type=str, parser='csv', help='Languages to include (e.g. "en,es,fr") (default: all supported locales)'
13+
type=str, parser='csv', help='languages to translate to (e.g. "en,es,fr") (default: all supported locales)'
1414
),
1515
keys=sn(
1616
args=['-k', '--keys', '--key', '--include-keys', '--include-key', '--translate-keys', '--translate-key'],

0 commit comments

Comments
 (0)