{"repo":"tanmuhittin/laravel-google-translate","free":true,"listed":false,"github":"https://github.com/tanmuhittin/laravel-google-translate","clone":"git clone https://github.com/tanmuhittin/laravel-google-translate.git","description":"Translate translation files to other languages using google translate or another translation api","language":"PHP","stars":433,"topics":["translation-api","laravel"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"laravel-google-translate Translate translation files (under /resources/lang) or lang.json files Provide extra facade functions Str::apiTranslate and Str::apiTranslateWithAttributes by using stichoza/google-translate-php or Google Translate API https://cloud.google.com/translate/ or Yandex Translatin API https://tech.yandex.com/translate/ Str facade api-translation helpers This package provides two translation methods for Laravel helper Str Illuminate\\Support\\Str::apiTranslate - Translates texts using your selected api in config Illuminate\\Support\\Str::apiTranslateWithAttributes - Again translates texts using your selected api in config in addition to that this function respects Laravel translation text attributes like :name How to use your own translation API Create your own translation API class by implementing Tanmuhittin\\LaravelGoogleTranslate\\Contracts\\ApiTranslatorContract . Set your classname in config/laravel google translate.php under the custom api translator key. Set your custom API key for your custom class in the custom api translator key key in the config file, or ideally in the CUSTOM API TRANSLATOR KEY environment variable. Example: config/laravel google translate.php Now all translations will use your custom api. installation If you would like to use stichoza/google-translate-php you do not need an API key. If you would like to use Google Translate API, edit config/laravel google translate.php and add your Google Translate API key. Then you can run: See it on ","default_branch":null,"files":null,"tree":[],"storefront":"/r/tanmuhittin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tanmuhittin/laravel-google-translate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}