Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Final Thoughts: Course Conclusion

Premium
1 min read

There's no one-size-fits-all solution for localization. It can be really complex and include everything in the application or it can be as simple as just translating static text.

I'll try to summarize the main points of this course:...

The Full Lesson is Only for Premium Members

Want to access all of our courses? (29 h 14 min)

You also get:

54 courses
Premium tutorials
Access to repositories
Private Discord
Get Premium for $129/year or $29/month

Already a member? Login here

Comments & Discussion

V
vinco ✓ Link copied!

Hello there, This was a great tutorial but there is something missing that I don't know how to implement: update a slug from a model in the language switcher.

English URL site.com/post/[english-slug] French URL site.com/article/french-slug]

When using the locale switcher, it should redirect to the french slug otherwise it would get a 404 error with the current switcher: site.com/article/[english-slug] (instead of site.com/article/[french-slug])

How could you implement this?

Thanks! Vincent

M
Modestas ✓ Link copied!

Hey, this one is a bit tricky to implement. Since there are slugs that are changing, you need to:

  1. Check if there is any slugs/string parameters on url (not part of url, but dynamic parts)
  2. Figure out to what it belongs
  3. Retrieve new slug
  4. Redirect to the new slug

And this quickly becomes a bigger deal than you might think, with a lot of fallbacks/checks needed. I can't go deep into specifics here due to the size of this project (in order for it to be done correctly), sorry! Hope the general idea/direction helps you

O
Oleksii ✓ Link copied!

great course, thanks. would be good also to add how to translate text in js files

M
Modestas ✓ Link copied!

We have an article about that:

https://laraveldaily.com/post/laravel-and-vuejs-translations-with-i18n-plugin

PC
Pavel Chebukin ✓ Link copied!

Thank you very much. A good selection with real examples.

AA
Ahmad Alhajh ✓ Link copied!

thanks alot for your effort!