From 95d50feaf5706dae86ce253df3fe39eb010aa86e Mon Sep 17 00:00:00 2001 From: Harish Toshniwal Date: Mon, 2 Jan 2023 16:07:40 +0530 Subject: [PATCH] v9 --- CHANGELOG.md | 3 +++ README.md | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b7d1f8..eca9471 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/README.md b/README.md index 6031d79..54679a6 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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']);