Package Data | |
---|---|
Maintainer Username: | vijaytupakula |
Maintainer Contact: | contact@vijaykumar.me (vijay kumar) |
Package Create Date: | 2016-08-06 |
Package Last Update: | 2018-07-30 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:12:26 |
Package Statistics | |
---|---|
Total Downloads: | 3,542 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 4 |
Total Forks: | 6 |
Total Open Issues: | 2 |
This package allows you to convert all files in resources/lang/en
folder to required languages automatically. Its easy to configure and run simple command.
laravel/framework": "5.2.*
This package uses Dedicated Google Translate
Package can be installed using composer by adding to "require" object
"require": {
"vijaytupakula/transvel": "dev-master"
}
now run composer update
or from console:
composer require vijaytupakula/transvel dev-master
now lets add class loader to providers
array in config/app.php
file
Vijaytupakula\Transvel\TransvelServiceProvider::class
once the class loader is added, try to run php artisan list
this should show php artisan translate
command.
Now add your available langueges in the config/app.php
as follows
'locales' => ['en' => 'English', 'fr' => 'French', 'it' => 'Italian'],
Run php artisan translate
: this command fetches all the files from resources/lang/en
folder and then creates the files in each folders that are added as locales
in app/config.php
with translation using google api.
Please feel free to contact me if you have problem using it. It works great for me :)