Looking to hire Laravel developers? Try LaraJobs

wbt-plugin-laravel maintained by wbtranslator

Description
Laravel plugin for WBTranslator
Last update
2018/01/08 11:11 (dev-master)
License
Links
Downloads
66

Comments
comments powered by Disqus

WBTranslator Plugin Laravel

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