Skip to content

Commit

Permalink
feat: unset default source locale (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saigesp authored Jun 6, 2023
1 parent 8f2f8ea commit b433d0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ python json_translate /home/user/project/locales/en_US.json --locale ES --output

```
-l, --locale Target language to translate the file. Defaults to "en" (English)
-sl, --source-locale Source language translating from (Required for glossaries). Defaults to "en" (English)
-sl, --source-locale Source language translating from (Optional, required for glossaries)
-g, --glossary Glossary ID to use when translating (Optional)
-o, --output Output file name. Defaults to "<target locale>.json" (ex: en.json)
-s, --sleep Sleep time between API calls. Defaults to 0.01 (seconds)
Expand Down
1 change: 0 additions & 1 deletion json_translate/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def get_parser(prog_name):
parser.add_argument(
"-sl",
"--source-locale",
default="en",
help="Language translating from (required for glossary)",
)
parser.add_argument(
Expand Down

0 comments on commit b433d0c

Please sign in to comment.