laravel-localized-routes
laravel-localized-routes copied to clipboard
Map locales to custom slugs
Add the ability to configure custom slugs values for locales, in addition to localized domains.
Maybe something in the lines of:
'supported-locales' => ['en', 'nl'],
'domains' => [
'en' => 'en.domain.test',
'nl' => 'nl.domain.test',
],
'slugs' => [
'en' => 'english',
'nl' => 'dutch',
],
If you don't add a slug for a locale, the locale itself can be used, so it is optional.
If you don't add a domain for a locale, the default app_url be used, so it is optional.
Also map route name prefix to locales? See #35
I like the idea of slugs, any progress?
Not yet, as there was need for it yet. But I can start thinking about it more seriously :) It will take some time though, depending on the impact this has on the rest of the features.