Laravel Auto Translate is a good package which can help us to translate our language files using Google Translate.

laravel translate

With this package you can translate your language files using a translator service. Currently the package ships only with Google Translate.

Specify a source language and a target language and it will automatically translate your files. This is useful if you want to prototype something quickly or just a first idea of the translation for later editing. The package ships with two artisan commands. One for translating all the missing translations that are set in the source language but not in the target language. The other one for translating all source language files and overwriting everything in the target language.

Installation

This package can be used in Laravel 5.6 or higher.

You can install the package via composer:

composer require ben182/laravel-auto-translate

Source Code and Documentation

https://github.com/ben182/laravel-auto-translate