name('home'); Route::get('/login', function () { return Inertia::render('Login'); })->name('login'); Route::middleware('auth')->group(function () { Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); require __DIR__.'/auth.php'; Route::get('/test-translations-en', function () { app()->setLocale('en'); return response()->json(trans('api')); }); Route::get('/test-translations-de', function () { app()->setLocale('de'); return response()->json(trans('api')); });