You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The translatable extension listens for the locale.changed event, in newer versions of Laravel this is incorrect. This event is now a class. $this['events']->dispatch(new Events\LocaleUpdated($locale));
Can this be updated to look for that event instead?
The text was updated successfully, but these errors were encountered:
Also needs to update how it gets the default locale. If you use Laravels app()->setLocale($someLocale) sets the config locale. If you do this in a middleware, it is usually set before the extension is loaded, so the default locale becomes the requested locale, meaning translations are never run, as it thinks the requested is the default. It needs a way to determine the default database locale from somewhere that is not the app's locale.
The translatable extension listens for the
locale.changed
event, in newer versions of Laravel this is incorrect. This event is now a class.$this['events']->dispatch(new Events\LocaleUpdated($locale));
Can this be updated to look for that event instead?
The text was updated successfully, but these errors were encountered: