Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes combination of cached routes and hide default locale in URL (#651)
* Fixed loading of translated cached routes in console context Used to only work for requests, since it depended on the request segment to read the locale. Now, LaravelLocalization's current locale is used. * Fixed route cache and list command for Laravel 5.8 * Fixed hide default locale in URL flag not working when routes are cached This fix ensures that no locale string is returned from `::setLocale()`, even when routes are cached, for the default locale, when this config flag is enabled.
- Loading branch information