We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8b841 commit 5b2b7e8Copy full SHA for 5b2b7e8
src/OrchardCoreContrib.PoExtractor.Liquid/LiquidStringExtractor.cs
@@ -11,6 +11,8 @@ namespace OrchardCoreContrib.PoExtractor.Liquid
11
/// </remarks>
12
public class LiquidStringExtractor : LocalizableStringExtractor<LiquidExpressionContext>
13
{
14
+ private static readonly string _localizationFilterName = "t";
15
+
16
/// <summary>
17
/// Creates a new instance of a <see cref="LiquidStringExtractor"/>.
18
/// </summary>
@@ -30,7 +32,7 @@ public override bool TryExtract(LiquidExpressionContext expressionContext, out L
30
32
result = null;
31
33
var filter = expressionContext.Expression;
34
- if (filter.Name == "t")
35
+ if (filter.Name == _localizationFilterName)
36
37
if (filter.Input is LiteralExpression literal)
38
0 commit comments