README.md in deepl-rb-3.0.1 vs README.md in deepl-rb-3.0.2

- old
+ new

@@ -125,10 +125,20 @@ puts translation.text # => "<p>Una muestra</p>" ``` +To translate with context, simply supply the `context` parameter: + +```rb +translation = DeepL.translate 'That is hot!', 'EN', 'ES', + context: 'He did not like the jalapenos in his meal.' + +puts translation.text +# => "¡Eso es picante!" +``` + The following parameters will be automatically converted: | Parameter | Conversion | --------------------- | --------------- | `preserve_formatting` | Converts `false` to `'0'` and `true` to `'1'` @@ -137,9 +147,10 @@ | `splitting_tags` | Converts arrays to strings joining by commas | `non_splitting_tags` | Converts arrays to strings joining by commas | `ignore_tags` | Converts arrays to strings joining by commas | `formality` | No conversion applied | `glossary_id` | No conversion applied +| `context` | No conversion applied ### Glossaries To create a glossary, use the `glossaries.create` method. The glossary `entries` argument should be an array of text pairs. Each pair includes the source and the target translations. \ No newline at end of file