diff --git a/README.md b/README.md index abfecf5..22cc99b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Or edit your project's `composer.json` to require `stichoza/google-translate-php ```json "require": { - "stichoza/google-translate-php": "~3.1" + "stichoza/google-translate-php": "~3.2" } ``` @@ -53,6 +53,12 @@ Or call a static method echo TranslateClient::translate('en', 'ka', 'Hello again'); ``` +As of v3.2 multiple sentence/array translation is available. + +```php +echo $tr->translate(['I can dance', 'I like trains', 'Double rainbow']); +``` + ### Advanced Configuration This package uses [Guzzle](https://github.com/guzzle/guzzle) for HTTP requests. You can pass an associative array of [guzzle client configuration options](http://guzzle.readthedocs.org/en/5.3/clients.html#creating-a-client) as a third parameter to `TranslateClient` constructor.