Skip to content

gregoryross1211/php-build-full-back-hotfix

Repository files navigation

Laravel Lang: JSON Fallback Hotfix

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages