Courses

Multi-Language Laravel 11: All You Need to Know

Which Package(s) to Choose?

Summary of this lesson:
- Spatie package recommended for building custom translation UI
- Mcamara package best for route translations
- Nikaia and MohmmedAshraf packages good for text translations without custom UI
- Consider combining packages for complex translation needs
- Choose based on specific project and team requirements

We just looked at a few ways to manage the static text translations. While each of them is good in its own space, there is no one size fits all solution. It really depends on your project and your team.

My short list of recommendations would be this:

  • If you need to translate just the text and want to build your own UI - Spatie package is a good choice.
  • If you need to translate the routes - Mcamara package
  • If you need to translate just the text but don't want to build your UI - You can use Nikaia package or MohmmedAshraf package
  • If there's a need for text and routes - look into combining the packages. For example, you can use Mcamara package and any of the remaining ones for the text.
Previous: MohmmedAshraf/laravel-translations
avatar

I would also add to this list of packages translation with Crowdin AI together with Lukasss93/laravel-larex-crowdin package\plugin.

avatar
You can use Markdown
avatar
You can use Markdown