laravel-lang/json-fallback-hotfix

Fixing a bug with processing fallback JSON keys

v1.0.0 2022-06-29 10:43 UTC

This package is auto-updated.

Last update: 2022-08-19 00:59:37 UTC


README

laravel lang publisher

Stable Version Unstable Version Total Downloads Github Workflow Status License

Installation

To get the latest version of Laravel Lang: JSON Fallback Hotfix, simply require the project using Composer:

composer require laravel-lang/json-fallback-hotfix

Next, in the providers section of the config/app.php file, replace Illuminate\Translation\TranslationServiceProvider::class with LaravelLang\JsonFallbackHotfix\TranslationServiceProvider::class.

It's all 😊

What's fixed

Out of the box, Laravel doesn't allow fallback translations for JSON keys.

For example, when you call __('Remember Me'), you get Remember Me instead of Se souvenir de moi for French fallback language.

This package solves this problem.

License

This package is licensed under the MIT License.