Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

asp.net core 6 get current culture in controller

public async Task<IActionResult> Index() {
    // Retrieves the requested culture
    var rqf = Request.HttpContext.Features.Get<IRequestCultureFeature>();
    // Culture contains the information of the requested culture
    var culture = rqf.RequestCulture.Culture;
    return View();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to reference a local file c# 
Csharp :: c# propertyinfo indexof 
Csharp :: How do I remove a String Array from a List in C# 
Csharp :: c# convert float to string 
Csharp :: iqkeyboardmanagerswift 
Csharp :: static variables 
Csharp :: imageLocation in C# 
Csharp :: how to delete dotnet project 
Csharp :: blazor navlink change bg of current component 
Csharp :: where are the viwes in .net core publish 
Csharp :: quartz .net core execute controller 
Csharp :: Derived classes of abstract class share property 
Csharp :: how to find any component of gameobject itself in untiy 
Csharp :: unity create file name datetime 
Csharp :: c# user and password verification 
Csharp :: check null type 
Csharp :: c# i++ meaning 
Csharp :: button next for picturebox c# 
Csharp :: c# deeply related children 
Csharp :: wpf onpropertychanged not working 
Csharp :: unity dictionary foreach remove 
Csharp :: unitydont play sound until finsihed 
Csharp :: class combining 
Csharp :: catwherehouse 
Csharp :: get all the file from directory except txt in c# 
Csharp :: C# Custom setter with parameter 
Csharp :: c# Color Convert 
Csharp :: translate english to spanish 
Csharp :: c# sha512 salt 
Csharp :: c# user name session 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =