Closed jsanchezgr closed 4 years ago
@jsanchezgr Yeah sure I'd accept a PR for that. Might as well change the prefix_fallback
to prefix_default
. 😄
@jsanchezgr I will have time to fix this issue this weekend. Can you let me know if you are about to finish this? Don't want to waste your effort! 😅
Go ahead! I barely started it. Thanks
Context
I have a site with the following locales: es (default), en (generic) and pt. The url structure should be as follows:
That can be achieved by setting
app.fallback_locale = 'es'
, however I need english to be the generic language.Problem
Taking a look to the code, this function forces the default (hidden) url prefix, to be the same as the fallback_locale language.
Potential fix
Just by adding a
laravel-multilingual-routes.default_locale
config param should do the trick. If you're happy with that, I can provide a PR.Thanks