Skip to content

Commit

Permalink
fix optional set default target language on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jefs42 committed May 1, 2022
1 parent c69fe12 commit 2ef7a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LibreTranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct($host = null, $port = null, $source = null, $target
$this->setSource($source);
}
if (!is_null($target)) {
$this->setSource($target);
$this->setTarget($target);
}

// If hosting LibreTranslate locally, check if ltmanage is available for API Key management
Expand Down

0 comments on commit 2ef7a03

Please sign in to comment.