chore: remove /lang-debug endpoint (was temporary)

Confirmed via live debug that the switcher works end-to-end on real
routes: cookie=ru, session=ru, app_getLocale='ru' after clicking.
The earlier confusion where <html lang> looked stuck was Laravel's
404 error page which bypasses middleware.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-13 20:33:09 +00:00
parent eacdedf4d6
commit 4f06223d2b
-8
View File
@@ -342,11 +342,3 @@ Route::get('/sw.js', function () {
}); });
JS, 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=3600']); JS, 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=3600']);
}); });
Route::get('/lang-debug', function (\Illuminate\Http\Request $request) {
return response()->json([
'app_locale_cookie' => $request->cookie('app_locale'),
'session_locale' => $request->session()->get('locale'),
'app_getLocale' => app()->getLocale(),
'all_cookies' => array_keys($request->cookies->all()),
]);
});