WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 204a189

Browse files
Merge pull request #181 from DeepLcom/fixes-to-guide-for-enabling-beta-languages
enable beta languages guide fixes
2 parents 35b3c54 + ea5caf6 commit 204a189

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/learning-how-tos/examples-and-guides/enable-beta-languages.mdx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Here are some examples how to do this in plain HTTP, as a cURL command, and usin
5252
```
5353
</Tab>
5454
<Tab title="Python">
55+
Minimum client library version: 1.24.0
56+
5557
```python
5658
result = deepl_client.translate_text(
5759
"Hello, world!",
@@ -62,6 +64,8 @@ Here are some examples how to do this in plain HTTP, as a cURL command, and usin
6264
```
6365
</Tab>
6466
<Tab title="Node.JS">
67+
Minimum client library version: 1.21.0
68+
6569
```typescript
6670
const result = await deeplClient.translateText(
6771
'Hello, world!',
@@ -76,6 +80,8 @@ Here are some examples how to do this in plain HTTP, as a cURL command, and usin
7680
```
7781
</Tab>
7882
<Tab title="PHP">
83+
Minimum client library version: 1.13.0
84+
7985
```php
8086
$result = $deeplClient->translateText(
8187
'Hello, world!',
@@ -87,6 +93,8 @@ Here are some examples how to do this in plain HTTP, as a cURL command, and usin
8793
```
8894
</Tab>
8995
<Tab title="C#">
96+
Minimum client library version: 1.16.0
97+
9098
```csharp
9199
var translatedText = await client.TranslateTextAsync(
92100
"Hello, world!",
@@ -96,16 +104,20 @@ Here are some examples how to do this in plain HTTP, as a cURL command, and usin
96104
```
97105
</Tab>
98106
<Tab title="Java">
107+
Minimum client library version: 1.11.0
108+
99109
```java
100110
TextTranslationOptions textTranslationOptions = new TextTranslationOptions();
101-
textTranslationOptions.setExtraBodyParameters(new HashMap<String, String>() {{
102-
put("enable_beta_languages", "1");
103-
}});
111+
textTranslationOptions.setExtraBodyParameters(
112+
Map.of("enable_beta_languages", "1");
113+
);
104114
TextResult result = deepLClient.translateText("Hello, world!", null, "ace",
105115
textTranslationOptions);
106116
```
107117
</Tab>
108118
<Tab title="Ruby">
119+
Minimum client library version: 3.3.0
120+
109121
```ruby
110122
translation = DeepL.translate 'Hello, world!', nil, 'ace',
111123
extra_body_parameters: { enable_beta_languages: true }

0 commit comments

Comments
 (0)