Courses

Multi-Language Laravel 11: All You Need to Know

mcamara/laravel-localization

You're reading a FREE PREVIEW of a PREMIUM course.
Summary of this lesson:
- Install and configure route localization package
- Translate routes across different languages
- Add language switcher to navigation
- Configure URL behavior for locales
- Handle route caching and translation

Link to the repository

[Only for premium members]

We've covered the core string Localization, but there are more aspects that we can translate. For example, routes:

Take a look at the URL bar

In the images, you should see that the routes are translated as well. This is done by the mcamara/laravel-localization package.

This package helps you manage your routes in multiple languages. It also provides a great set of middlewares and helpers to help you with translations - such as detecting the user's language and redirecting them to the correct route, translating routes, etc...

The full lesson is only for Premium Members.
Want to access all 18 text lessons of this course? (80 min read)

You also get:

  • 77 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord