Skip to content

Commit

Permalink
Add new languages, fixes #9.
Browse files Browse the repository at this point in the history
  • Loading branch information
uinput committed Mar 15, 2019
1 parent 9aed34d commit 6972ad5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ See the table below for all language codes.
For example, if you were to translate from English to German, the argument should be `-l EN-DE`.
You can also tell DeepL to automatically detect the language of the source text by supplying `AUTO` as the source language (e.g. `-l AUTO-DE`).

|Language|Code|
|:-------|:--:|
|English |EN |
|German |DE |
|French |FR |
|Spanish |ES |
|Italian |IT |
|Dutch |NL |
|Polish |PL |
|Language |Code|
|:----------|:--:|
|German |DE |
|English |EN |
|Spanish |ES |
|French |FR |
|Italian |IT |
|Dutch |NL |
|Polish |PL |
|Portuguese |PT |
|Russian |RU |

You can tell Deeplator to read input from a file using the `-f PATH` argument.
When ommitted, Deeplator will read input from `stdin` instead.
Expand Down
2 changes: 1 addition & 1 deletion deeplator/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

POST_URL = "https://www2.deepl.com/jsonrpc"
AUTO_LANG = "AUTO"
TARGET_LANGS = ["EN", "DE", "FR", "ES", "IT", "NL", "PL"]
TARGET_LANGS = ["EN", "DE", "FR", "ES", "IT", "NL", "PL", "PT", "RU"]
SOURCE_LANGS = TARGET_LANGS + [AUTO_LANG]
LENGTH_LIMIT = 5000

Expand Down

0 comments on commit 6972ad5

Please sign in to comment.