Translate your files automatically using Laravel Google Translate
Laravel Google Translate is a good Laravel package that we can use to translate our files to other languages automatically using stichoza/google-translate-php or Google Translate API.
Installation
composer require tanmuhittin/laravel-google-translate --dev
php artisan vendor:publish --provider=Tanmuhittin\LaravelGoogleTranslate\LaravelGoogleTranslateServiceProvider
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.
php artisan config:cache
Then you can run
php artisan translate:files
Source Code
https://github.com/tanmuhittin/laravel-google-translate
If you like this article, don't forget to share it. Thank you.
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5.8 Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5.3 Intermediate