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
Hi. Thanks for good extension. Does it working in controllers and models? What I am trying to do trans('app.updated') not working. But following works: trans('app.updated', [], UriLocalizer::localeFromRequest()).
I use files as translation source.
The text was updated successfully, but these errors were encountered:
Do you use the localize middleware? In there it automatically sets the default locale and you wouldn't need to explicitly define UriLocalizer::localeFromRequest().
It's the file Waavi\Translation\Middleware\TranslationMiddleware. You can use it like:
It does work with POST requests if it's not the first request the user makes and their language preference has been set in a cookie. However, this would not work in API.
We are considering making POST requests optional, would that work for you?
Hi. Thanks for good extension. Does it working in controllers and models? What I am trying to do
trans('app.updated')
not working. But following works:trans('app.updated', [], UriLocalizer::localeFromRequest())
.I use files as translation source.
The text was updated successfully, but these errors were encountered: