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:...
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:...
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
Hey, this one is a bit tricky to implement. Since there are slugs that are changing, you need to:
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