codebuglab/laravel-go-translate
Translate laravel resource, vendor, folder or file from google translation without requiring any api information.

To install this package through composer run the following command in the terminal
composer require codebuglab/laravel-go-translate
Or if you want to use it only on development mode
composer require codebuglab/laravel-go-translate --dev
php or json filesphp artisan go-translate:resource {sourceLang} {destinationLang}
sourceLang and destinationLang as variables and translate all files in resources/lang/{sourceLang}
to resources/lang/{destinationLang}php artisan go-translate:resource en ar
resources/lang/en folder and transfer them to resources/lang/ar folder after translation from en to ar
php artisan go-translate:vendor {sourceLang} {destinationLang}
sourceLang and destinationLang as variables and translate all files in resources/lang/vendor/{sourceLang}
to resources/lang/vendor/{destinationLang}php artisan go-translate:vendor en ar
resources/lang/vendor/en folder and transfer them to resources/lang/vendor/ar folder after translation from en to ar
php artisan go-translate:folder {sourceLang} {destinationLang} {sourceFolder} {destinationFolder}
sourceLang, destinationLang, sourceFolder and destinationFolder as variables and translate all files in {sourceFolder} to {destinationFolder} from {sourceLang} to {destinationLang}php artisan go-translate:folder en ar resources/lang/en resources/lang/test_folder
resources/lang/en folder and transfer them to resources/lang/test_folder folder after translation from en to ar
php artisan go-translate:file {sourceLang} {destinationLang} {sourcePath} {destinationPath}
sourceLang, destinationLang, sourcePath and destinationPath as variables and translate {sourcePath} file to {destinationPath} from {sourceLang} to {destinationLang}php artisan go-translate:file en ar resources/lang/en/auth.php resources/lang/test_folder/new_name.php
resources/lang/en/auth.php and transfer it to resources/lang/test_folder/new_name.php file after translation from en to ar
php artisan go-translate:resource {sourceLang} {destinationLang} {--E=json}
--E is an optional variable you can convert php files to json during translationphp artisan go-translate:resource en ar --E=json
resources/lang/en to resources/lang/ar, This will also convert files to json during translationresources/lang/en/auth.php which is based laravel file created with all projects will translate and save at resources/lang/ar/auth.jsonjson, php
ctrl+c and try to change your ip address of wait for couple or hours till the ban ends.ISO-639-1 code which will use to translate your language.To run test use this command vendor/bin/phpunit
This package is a free software distributed under the terms of the MIT license.
How can I help you explore Laravel packages today?