diff --git a/README.md b/README.md index 9cd2fc7..cc5d9f6 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ [![GitHub Tests Action Status](https://github.com/transl-me/laravel-transl/actions/workflows/run-tests.yml/badge.svg)](https://github.com/transl-me/laravel-transl/actions/workflows/run-tests.yml) [![GitHub PHPStan Action Status](https://github.com/transl-me/laravel-transl/actions/workflows/phpstan.yml/badge.svg)](https://github.com/transl-me/laravel-transl/actions/workflows/phpstan.yml) [![GitHub Code Style Action Status](https://github.com/transl-me/laravel-transl/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/transl-me/laravel-transl/actions/workflows/fix-php-code-style-issues.yml) -[![Latest Version on Packagist](https://img.shields.io/packagist/v/transl-me/laravel-transl.svg?style=flat-square)](https://packagist.org/packages/transl-me/laravel-transl) -[![Total Downloads](https://img.shields.io/packagist/dt/transl-me/laravel-transl.svg?style=flat-square)](https://packagist.org/packages/transl-me/laravel-transl) +[![Latest Version on Packagist](https://img.shields.io/packagist/v/transl-me/laravel-transl.svg)](https://packagist.org/packages/transl-me/laravel-transl) +[![Total Downloads](https://img.shields.io/packagist/dt/transl-me/laravel-transl.svg)](https://packagist.org/packages/transl-me/laravel-transl) --- diff --git a/composer.json b/composer.json index 189ff9f..9fc3a77 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ "translation", "translation manager" ], - "homepage": "https://github.com/transl-me/laravel-transl", + "homepage": "https://transl.me", "authors": [ { "name": "Victor GUTT", diff --git a/config/transl.php b/config/transl.php index 9513e67..3bd2c3c 100644 --- a/config/transl.php +++ b/config/transl.php @@ -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. @@ -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() : '', + ]), ], ], ],