Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f8e809f

Browse files
committed
Merge remote-tracking branch 'origin/DEEP-7-deprecate-library' into DEEP-7-deprecate-library
2 parents cf59736 + bc3cb94 commit f8e809f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ foreach ($translations as $translation) {
8484
| param | Description |
8585
|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
8686
| $text | Text to be translated. Only UTF8-encoded plain text is supported. The parameter may be specified as an Array and translations are returned in the same order as they are requested. Each of the array values may contain multiple sentences. Up to 50 texts can be sent for translation in one request. |
87-
| $sourceLang | Language of the text to be translated. <br>default: de |
87+
| $sourceLang | Language of the text to be translated. <br>default: "" (DeepL will auto-detect) |
8888
| $targetLang | The language into which the text should be translated. <br> default: en |
8989
| $tagHandling | Sets which kind of tags should be handled. Options currently available: "xml" |
9090
| $ignoreTags | Array of XML tags that indicate text not to be translated. <br> default: null |

src/DeepL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function languages($type = null)
7272
*/
7373
public function translate(
7474
$text,
75-
$sourceLang = 'de',
75+
$sourceLang = '',
7676
$targetLang = 'en',
7777
$tagHandling = null,
7878
array $ignoreTags = null,

0 commit comments

Comments
 (0)