Lumen fails to change locale
You are changing the config after it is loaded, which has no effect. To change the locale at runtime use the setLocale()
method on the app instance:
app()->setLocale($request->input('lang'));
Edit
The first answer seem to only work on Laravel. To change the locale at runtime with Lumen use this:
app('translator')->setLocale($request->input('lang'));