Skip to content

Commit 8ce1201

Browse files
committed
Change constant name
1 parent ae8403f commit 8ce1201

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher.Localization.Shared/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static class Constants
1111
public const string SystemPrefixUri = "clr-namespace:System;assembly=mscorlib";
1212
public const string XamlPrefixUri = "http://schemas.microsoft.com/winfx/2006/xaml";
1313
public const string XamlTag = "String";
14-
public const string KeyTag = "Key";
14+
public const string KeyAttribute = "Key";
1515

1616
public static readonly Regex LanguagesXamlRegex = new Regex(@"\\Languages\\[^\\]+\.xaml$", RegexOptions.IgnoreCase);
1717
}

Flow.Launcher.Localization.SourceGenerators/Localize/LocalizeSourceGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private static ImmutableArray<LocalizableString> ParseXamlFile(AdditionalText fi
182182
return _emptyLocalizableStrings;
183183
}
184184

185-
var key = element.Attribute(xNs + Constants.KeyTag)?.Value; // "Key" attribute in xaml namespace
185+
var key = element.Attribute(xNs + Constants.KeyAttribute)?.Value; // "Key" attribute in xaml namespace
186186
var value = element.Value;
187187
var comment = element.PreviousNode as XComment;
188188

0 commit comments

Comments
 (0)