Skip to content

Commit 616c03d

Browse files
committed
Snake-cased key names
1 parent 169af8b commit 616c03d

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

remove-json-keys/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Options can be set by using command-line arguments:
4242
| Option | Description | Example
4343
| ------------------- | ------------------------------------------------------------------------------- | -----------------------------
4444
| `-d`, `--json-dir` | Name of the folder containing JSON files (default: `_locales`) | `--json-dir=data`
45-
| `-k`, `--keys` | Comma-separated list of keys to remove | `--keys=appDesc,err_notFound`
45+
| `-k`, `--keys` | Comma-separated list of keys to remove | `--keys=app_DESC,err_NOT_FOUND`
4646
| `-i`, `--init` | Create .remove-json.config.json5 in project root to store default settings |
4747
| `-W`, `--no-wizard` | Skip interactive prompts during start-up |
4848
| `-h`, `--help` | Show help screen |

remove-json-keys/src/remove_json_keys/lib/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
),
1111
keys=sn(
1212
args=['-k', '--keys', '--key', '--remove-keys', '--remove-key', '--delete-keys', '--delete-key'],
13-
type=str, parser='csv', help='Keys to remove (e.g. "appName,author")'
13+
type=str, parser='csv', help='Keys to remove (e.g. "app_NAME,author")'
1414
),
1515
init=sn(
1616
args=['-i', '--init'],

translate-messages/.translate-msgs.config.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target_langs": "", // languages to translate to (e.g. "en,es,fr") (default: all supported locales)
44
"keys": "", // keys to translate (e.g. "app_DESC,err_NOT_FOUND")
55
"exclude_langs": "", // languages to exclude (e.g. "en,es")
6-
"exclude_keys": "", // keys to ignore (e.g. "appName,author")
6+
"exclude_keys": "", // keys to ignore (e.g. "app_NAME,author")
77
"force": false, // force overwrite existing config file when using --init
88
"no_wizard": false // skip interactive prompts during start-up
99
}

translate-messages/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Example defaults:
8383
"target_langs": "", // languages to translate to (e.g. "en,es,fr") (default: all supported locales)
8484
"keys": "", // keys to translate (e.g. "app_DESC,err_NOT_FOUND")
8585
"exclude_langs": "", // languages to exclude (e.g. "en,es")
86-
"exclude_keys": "", // keys to ignore (e.g. "appName,author")
86+
"exclude_keys": "", // keys to ignore (e.g. "app_NAME,author")
8787
"force": false, // force overwrite existing config file when using --init
8888
"no_wizard": false // skip interactive prompts during start-up
8989
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
),
1515
keys=sn(
1616
args=['-k', '--keys', '--key', '--include-keys', '--include-key', '--translate-keys', '--translate-key'],
17-
type=str, parser='csv', help='Keys to translate (e.g. "appDesc,err_notFound")'
17+
type=str, parser='csv', help='Keys to translate (e.g. "app_DESC,err_NOT_FOUND")'
1818
),
1919
exclude_langs=sn(
2020
args=['--exclude-langs', '--exclude-lang', '--ignore-langs', '--ignore-lang'],
2121
type=str, parser='csv', help='Languages to exclude (e.g. "en,es")'
2222
),
2323
exclude_keys=sn(
2424
args=['--exclude-keys', '--exclude-key', '--ignore-keys', '--ignore-key'],
25-
type=str, parser='csv', help='Keys to ignore (e.g. "appName,author")'
25+
type=str, parser='csv', help='Keys to ignore (e.g. "app_NAME,author")'
2626
),
2727
init=sn(
2828
args=['-i', '--init'],

0 commit comments

Comments
 (0)