Skip to content

Commit d5872b1

Browse files
Remove list of supported glossary pairs in comment, instead get_glossary_languages() should be used to retrieve current list
1 parent 9d44892 commit d5872b1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

deepl/translator.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,10 +1108,14 @@ def create_glossary(
11081108
languages, containing the entries in dictionary. The glossary may be
11091109
used in the translate_text functions.
11101110
1111-
Only certain language pairs are supported, currently the following:
1112-
EN<->DE, EN<->FR, and EN<->ES. The available language pairs can be
1113-
queried using get_glossary_languages(). A glossary with target language
1114-
EN may be used to translate texts into both EN-US and EN-GB.
1111+
Only certain language pairs are supported. The available language pairs
1112+
can be queried using get_glossary_languages(). Glossaries are not
1113+
regional specific: a glossary with target language EN may be used to
1114+
translate texts into both EN-US and EN-GB.
1115+
1116+
This function requires the glossary entries to be provided as a
1117+
dictionary of source-target terms. To create a glossary from a CSV file
1118+
downloaded from the DeepL website, see create_glossary_from_csv().
11151119
11161120
:param name: user-defined name to attach to glossary.
11171121
:param source_lang: Language of source terms.

0 commit comments

Comments
 (0)