From d62f968eb23cda178eafb3226aa570ea40971db9 Mon Sep 17 00:00:00 2001 From: Vic GUTT Date: Sun, 27 Oct 2024 09:58:07 +0100 Subject: [PATCH 1/3] chore: readme badge styling update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) --- From 71968cd7eb4e6cad5e13188fdccae35e76579762 Mon Sep 17 00:00:00 2001 From: Vic GUTT Date: Sun, 27 Oct 2024 09:58:20 +0100 Subject: [PATCH 2/3] chore: composer homepage url update --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From f38336399c261bdc73c977c25d5fdc2f226a8275 Mon Sep 17 00:00:00 2001 From: Vic GUTT Date: Sun, 27 Oct 2024 09:58:57 +0100 Subject: [PATCH 3/3] feat: better config starting point --- config/transl.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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() : '', + ]), ], ], ],