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
By default if I don't send any header value the default language is en even if I set the fallbackLanguage as es, how can I define default language?
When I send a header value for a language that does not exist in my configuration it takes the value from fallbackLanguage, but if the header is not set the default language is en.
I solved it using a middleware that sets the language if there is any value in the header, but is not there a better way of do it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
By default if I don't send any header value the default language is
en
even if I set thefallbackLanguage
ases
, how can I define default language?When I send a header value for a language that does not exist in my configuration it takes the value from
fallbackLanguage
, but if the header is not set the default language isen
.I solved it using a middleware that sets the language if there is any value in the header, but is not there a better way of do it?
Beta Was this translation helpful? Give feedback.
All reactions