Skip to content

Commit

Permalink
Merge pull request #110 from DeepLcom/context-parameter-ga
Browse files Browse the repository at this point in the history
Remove alpha label from context parameter
  • Loading branch information
daniel-jones-dev authored Jun 18, 2024
2 parents f5efb13 + 6019e28 commit 3dc0fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ arguments are:
containing the glossary ID, or a `GlossaryInfo` as returned by
`get_glossary()`.
- `context`: specifies additional context to influence translations, that is not
translated itself. Note this is an **alpha feature**: it may be deprecated at
any time, or incur charges if it becomes generally available.
See the [API documentation][api-docs-context-param] for more information and
translated itself. Characters in the `context` parameter are not counted toward billing.
See the [API documentation][api-docs-context-param] for more information and
example usage.
- `tag_handling`: type of tags to parse before translation, options are `'html'`
and `'xml'`.
Expand Down
7 changes: 3 additions & 4 deletions deepl/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,9 @@ def translate_text(
:param target_lang: language code to translate text into, for example
"DE", "EN-US", "FR".
:param context: (Optional) Additional contextual text to influence
translations, that is not translated itself. Note: this is an alpha
feature: it may be deprecated at any time, or incur charges if it
becomes generally available. See the API documentation for more
information and example usage.
translations, that is not translated itself. Characters in the
`context` parameter are not counted toward billing. See the API
documentation for more information and example usage.
:param split_sentences: (Optional) Controls how the translation engine
should split input into sentences before translation, see
:class:`SplitSentences`.
Expand Down

0 comments on commit 3dc0fe6

Please sign in to comment.