feat(HomeController): Kultur-Cookie zur Hauptseite hinzugefügt.

This commit is contained in:
Developer 02
2024-11-04 16:28:37 +01:00
parent 47c7070700
commit 8707a5cdb5
2 changed files with 15 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
@{
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var userCulture = ViewData["UserCulture"] as Culture;
//TODO: instead of default assignment add a middleware for culture
userCulture ??= _cultures.Default;
var isReadOnly = false;
if (ViewData["IsReadOnly"] is bool isReadOnly_bool)
isReadOnly = isReadOnly_bool;