wbtranslator / wbt-plugin-laravel
Laravel plugin for WBTranslator
dev-master
2018-01-08 10:11 UTC
Requires
- php: ^7
- wbtranslator/wbt-sdk-php: ^0.1
Requires (Dev)
- phpunit/phpunit: ^6
This package is not auto-updated.
Last update: 2025-02-08 17:38:58 UTC
README
Installation by composer
$ composer require wbtranslator/wbt-plugin-laravel dev-master
Add TranslatorServiceProvider to PROJECT_PATH/config/app.php in section 'providers'
'providers' => [ // ... WBTranslator\PluginLaravel\Providers\WBTranslatorServiceProvider::class ]
Publish the config using the following command
$ php artisan vendor:publish --provider="WBTranslator\PluginLaravel\Providers\WBTranslatorServiceProvider"
Set folders permissions with write access from server.
$ chmod -R 775 ./resources/lang/
Set API KEY
Put API KEY to .env file
Example: WBT_API_KEY=API_KEY
Send abstractions to WBTranslator
$ php artisan wbt:abstractions:export
Get abstractions from WBTranslator and save them to lang directory
$ php artisan wbt:abstractions:import