It's not necessarily that simple. What I mean is you need to persist the user's selection. If you refreshed the page it would go to the default.
Otherwise just set up post route. A translation controller. If you're not strictly using rest, a toggleLanguage method. Looking for the language in the URL or body. Simply call your packages method to set the language. Store the requested language type in the session or cache. Then return back().
Now I suggest a middleware to check every applicable request. If session or cache has the language set, return the language. If not what ever default setting.
Other then persistent, it's extremely basic, not sure a tutorial is needed. If so you may need to watch some fundamental videos here.