Open uacode opened 11 months ago
In laravellocalization.php there is option hideDefaultLocaleInURL. If your default language is en. It will hide it for you.
'hideDefaultLocaleInURL' => true,
I had some problem when translating on language selector. I just checked if it is English.
{{LaravelLocalization::getURLFromRouteNameTranslated($localeCode, 'routes.index',[],true)}}
I remember getLocalizedURL didn't work correctly so I switched to routes translation in each folder
'index' => '',
In cfg: 'urlsIgnored' => ['/', '/en'],
But call in tpl
Generated URLs without skip route