Skip to content

Commit

Permalink
Remove list of supported glossary pairs in comment, instead get_gloss…
Browse files Browse the repository at this point in the history
…ary_languages() should be used to retrieve current list
  • Loading branch information
daniel-jones-dev committed May 16, 2022
1 parent 9d44892 commit d5872b1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions deepl/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 1108,14 @@ def create_glossary(
languages, containing the entries in dictionary. The glossary may be
used in the translate_text functions.
Only certain language pairs are supported, currently the following:
EN<->DE, EN<->FR, and EN<->ES. The available language pairs can be
queried using get_glossary_languages(). A glossary with target language
EN may be used to translate texts into both EN-US and EN-GB.
Only certain language pairs are supported. The available language pairs
can be queried using get_glossary_languages(). Glossaries are not
regional specific: a glossary with target language EN may be used to
translate texts into both EN-US and EN-GB.
This function requires the glossary entries to be provided as a
dictionary of source-target terms. To create a glossary from a CSV file
downloaded from the DeepL website, see create_glossary_from_csv().
:param name: user-defined name to attach to glossary.
:param source_lang: Language of source terms.
Expand Down

0 comments on commit d5872b1

Please sign in to comment.