Add page to become a pirate

This commit is contained in:
jvyden 2022-08-02 11:12:33 -04:00
parent 5fdb9b4f5c
commit 77a2d27f13
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
7 changed files with 106 additions and 8 deletions

View file

@ -52,6 +52,8 @@ public class BaseLayout : PageModel
{
if (ServerStatics.IsUnitTesting) return LocalizationManager.DefaultLang;
if (this.language != null) return this.language;
if (this.User?.IsAPirate ?? false) return "en-PT";
IRequestCultureFeature? requestCulture = Request.HttpContext.Features.Get<IRequestCultureFeature>();
if (requestCulture == null) return this.language = LocalizationManager.DefaultLang;