Skip to content

Commit

Permalink
feat: better config starting point
Browse files Browse the repository at this point in the history
  • Loading branch information
VicGUTT committed Oct 27, 2024
1 parent 71968cd commit f383363
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions config/transl.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
* This value should be unique per team members/bots.
* This value should be created/retrieved/refreshed from Transl.
*/
'auth_key' => env('TRANSL_KEY'),
'auth_key' => env('TRANSL_KEY', 'Empty `TRANSL_KEY` environnement variable.'),

/**
* A user friendly name given to the project.
Expand Down Expand Up @@ -129,9 +129,13 @@
* list of possible params and their description.
*/
LocalFilesDriver::class => [
'language_directories' => [
lang_path(),
],
'language_directories' => array_filter([
/**
* Ensure the language directory is first published
* with: `php artisan lang:publish`.
*/
file_exists(lang_path()) ? lang_path() : '',
]),
],
],
],
Expand Down

0 comments on commit f383363

Please sign in to comment.