Skip to content

Commit

Permalink
v9
Browse files Browse the repository at this point in the history
  • Loading branch information
introwit committed Jan 2, 2023
1 parent 914159f commit 95d50fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All the notable changes to the Laravel Google Translate package are documented in this file:

## 9.0 (1-1-2023)
- Change method name (fix typo)

## 8.1.0 (14-07-2022)
- Fixes by [Florian Ressel](https://github.com/resslinger) across various PRs.
- Thank you Florian :heart:
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This package is no longer actively developed and will soon be archived. [More details here](https://github.com/JoggApp/laravel-google-translate/discussions/51)


# Laravel package for the Google Translate API

[![Latest Version](https://img.shields.io/github/release/JoggApp/laravel-google-translate.svg?style=flat-rounded)](https://github.com/JoggApp/laravel-google-translate/releases)
Expand Down Expand Up @@ -64,9 +67,11 @@ GoogleTranslate::detectLanguage(['Hello world', 'Laravel is the best']);
// Returns multi-dimensional array containing result set for all the array elements.
```

- Translating the string(s): The `translate` method accepts a second optional argument which can be the code of the language you want the string to be translated in. You can specify the default option in the config file:
- Translating the string(s): The `translate` method accepts a third optional argument which can be the code of the language you want the string to be translated in. You can specify the default option in the config file:

```php
// GoogleTranslate::translate($input, $from = null, $to = null, $format = 'text'): array

GoogleTranslate::translate('Hello world'): array

GoogleTranslate::translate(['Hello world', 'Laravel is the best']);
Expand Down

0 comments on commit 95d50fe

Please sign in to comment.