setting()->putForCurrentUser('ui-shortcuts', $shortcuts->toJson());
setting()->putForCurrentUser('ui-shortcuts-enabled', $enabled);
- $this->showSuccessNotification('Shortcut preferences have been updated!');
+ $this->showSuccessNotification(trans('preferences.shortcuts_update_success'));
return redirect('/preferences/shortcuts');
}
return response('', 204);
}
+ /**
+ * Update the favorite status for a code language.
+ */
public function updateCodeLanguageFavourite(Request $request)
{
$validated = $this->validate($request, [
}
setting()->putForCurrentUser('code-language-favourites', implode(',', $currentFavorites));
+ return response('', 204);
}
}