diff --git a/src/Commands/TranslateFilesCommand.php b/src/Commands/TranslateFilesCommand.php index 13a7b25..28a3d6f 100644 --- a/src/Commands/TranslateFilesCommand.php +++ b/src/Commands/TranslateFilesCommand.php @@ -62,7 +62,7 @@ public function handle() { //Collect input $this->base_locale = $this->ask('What is base locale?', config('app.locale', 'en')); - $this->locales = array_filter(explode(",", $this->ask('What are the target locales? Comma seperate each lang key', 'tr,it'))); + $this->locales = array_filter(explode(",", $this->ask('What are the target locales? Comma seperate each lang key', config('laravel_google_translate.default_target_locales','tr,it')))); $should_force = $this->choice('Force overwrite existing translations?', ['No', 'Yes'], 'No'); $this->force = false; if ($should_force === 'Yes') { diff --git a/src/config/laravel_google_translate.php b/src/config/laravel_google_translate.php index 95334c5..e0b2d10 100644 --- a/src/config/laravel_google_translate.php +++ b/src/config/laravel_google_translate.php @@ -8,6 +8,7 @@ 'no_requests_per_batch' => env('NO_REQUESTS_PER_BATCH', 5), 'sleep_time_between_batches' => env('SLEEP_TIME_BETWEEN_BATCHES', 1) ], + 'default_target_locales'=>'tr,it', 'trans_functions' => [ 'trans', 'trans_choice',