diff --git a/src/config/laravel_google_translate.php b/src/config/laravel_google_translate.php index 1985d15..95334c5 100644 --- a/src/config/laravel_google_translate.php +++ b/src/config/laravel_google_translate.php @@ -1,12 +1,12 @@ null, - 'yandex_translate_api_key'=>null, - 'custom_api_translator' => null, - 'custom_api_translator_key' => null, + 'google_translate_api_key'=>env('GOOGLE_TRANSLATE_API_KEY', null), + 'yandex_translate_api_key'=>env('YANDEX_TRANSLATE_API_KEY', null), + 'custom_api_translator' => env('CUSTOM_API_TRANSLATOR', null), + 'custom_api_translator_key' => env('CUSTOM_API_TRANSLATOR_KEY', null), 'api_limit_settings'=>[ - 'no_requests_per_batch' => 5, - 'sleep_time_between_batches' => 1 + 'no_requests_per_batch' => env('NO_REQUESTS_PER_BATCH', 5), + 'sleep_time_between_batches' => env('SLEEP_TIME_BETWEEN_BATCHES', 1) ], 'trans_functions' => [ 'trans',