mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-16 22:52:27 +00:00
Add page to become a pirate
This commit is contained in:
parent
5fdb9b4f5c
commit
77a2d27f13
7 changed files with 106 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue