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
As a user, if I try to get('welcome') with the locale set to ‘es’ and there's no message in Spanish (es) but it exists in English (en) then I would like the get method to return the message in the “fallback” locale (in this case English).
Description
We want to implement both getter and setter methods to interact with the “fallback”:
Hi! Do you have any idea when the v1.1.0 will be released? We need this fallback feature for our Laravel app, but we avoid pulling from non-release repos when possible. Thanks!
Summary
As a user, if I try to
get('welcome')
with the locale set to ‘es’ and there's no message in Spanish (es) but it exists in English (en) then I would like theget
method to return the message in the “fallback” locale (in this case English).Description
We want to implement both getter and setter methods to interact with the “fallback”:
getFallback
— return the fallback locale (see Laravel's API).setFallback
— set the fallback locale (see Laravel's API).Also, we want to take in account of the
fallback
value when executingget()
,trans()
andchoice()
.Tests
Tests needs to be created to cover the fallback feature.
The text was updated successfully, but these errors were encountered: