Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiizor committed Nov 2, 2024
1 parent 5fd27d0 commit b8015e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Project/Sucrose.Property/Helper/Localization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static string Convert(string Key)
{
if (SPMI.Properties.PropertyLocalization != null && SPMI.Properties.PropertyLocalization.Any())
{
if (SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture, out Dictionary<string, string> Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToLower(), out Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToLowerInvariant(), out Pairs))
if (SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture, out Dictionary<string, string> Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToLower(), out Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToUpper(), out Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToLower(), out Pairs) || SPMI.Properties.PropertyLocalization.TryGetValue(SMMG.Culture.ToUpperInvariant(), out Pairs))
{
if (Pairs != null && Pairs.TryGetValue(Key, out string Value))
{
Expand Down

0 comments on commit b8015e5

Please sign in to comment.