Skip to content

Commit

Permalink
^ This is a combination of 11 commits.
Browse files Browse the repository at this point in the history
^ This is the 1st commit message:

Add GetCulture() extension method

^ This is the commit message #2:

Cleanup ISmsService (#15142)


^ This is the commit message #3:

Fix TheAdminTheme layout margin and padding (#15143)


^ This is the commit message #4:

Fix SectionDisplayDriver prefix (#15123)


^ This is the commit message #5:

Prefill template name when creating a template. (#15145)


^ This is the commit message #6:

Set the User Localization feature priority

^ This is the commit message #7:

Fix issue with default culture not selected

When currentUserCulture is null or supportedCulture doesn't contain currentUserCulture.

^ This is the commit message #8:

Update the height of the admin content (#15153)


^ This is the commit message #9:

Eliminate the anti-discovery pattern in Elasticsearch (#15134)


^ This is the commit message #10:

Renaming and cleaning up search services (#15156)


^ This is the commit message #11:

mkdocs-material 9.5.5
  • Loading branch information
hishamco authored and Skrypt committed Jan 25, 2024
1 parent cc8f4aa commit 5df265b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using OrchardCore.Users.Localization.Providers;

namespace System.Security.Claims;

public static class ClaimsPrincipleExtensions
{
public static string GetCulture(this ClaimsPrincipal principal)
=> principal.FindFirstValue(UserLocalizationClaimsProvider.CultureClaimType);
}

0 comments on commit 5df265b

Please sign in to comment.