thanks it works
thanks i solved it using [BindProperty] public string currentCulture { get; set; } public async Task<IActionResult> OnGetAsync() { currentCulture = CultureInfo.CurrentUICulture.EnglishName; }
hi i want to make a logic within razor page if i open with language (en) so do something else if (ar) do another thing so i used @using System.Globalization @{ var currentCulture = CultureInfo.CurrentUICulture.Name; var isArabic = currentCulture.StartsWith("ar"); } <div class="completion-message text-center" style="display: none;"> <div class="modal d-block mx-auto" tabindex="-1" style="background:#cccccc96;"> <div class="modal-dialog modal-xl"> <div class="modal-content w-75"> <div class="modal-body"> @if (isArabic) { <h1>مبرووووووووووووك</h1> } else { <img src="/images/Wizard/congrat.png" alt="congratulation, finished the setup" class="w-100" /> } </div> <div class="modal-footer"> <button class="btn btn-primary" id="congrats">Ok</button> </div> </div> </div> </div> </div>
but not work ... so how to know which culture user open with
i mean this how to know which language user select ??
hi i solved it but i got a strange behavior you can check the video https://streamable.com/1fmj7p
hi how to hide <abp-tab> from screen i want to keep the code but make it hidden in screen type="hidden" => not work display:none; => not work