Skip to content

Commit

Permalink
override config with env (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
buzzclue authored Aug 25, 2021
1 parent bbc3050 commit c5f5f1e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/config/laravel_google_translate.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
return [
'google_translate_api_key'=>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',
Expand Down

0 comments on commit c5f5f1e

Please sign in to comment.