Skip to content

Commit

Permalink
Fixed Locale. (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Utar94 authored Dec 24, 2024
1 parent ebfa600 commit 5f3a758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Logitar.Identity.Core/Locale.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public Locale(CultureInfo culture)
/// <param name="code">The multipart code of the locale.</param>
public Locale(string code)
{
Code = code;
Code = code.Trim();
new Validator().ValidateAndThrow(this);

Culture = CultureInfo.GetCultureInfo(code);
Culture = CultureInfo.GetCultureInfo(Code);
}

/// <summary>
Expand Down

0 comments on commit 5f3a758

Please sign in to comment.