diff --git a/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/CultureValue.cs b/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/CultureValue.cs index a71234b7973..4d1ccf80b11 100644 --- a/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/CultureValue.cs +++ b/src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/CultureValue.cs @@ -75,7 +75,8 @@ private static async ValueTask GetSupportedCulturesAsync(TemplateCon var services = ctx.Services; var localizationService = services.GetRequiredService(); var supportedCultures = await localizationService.GetSupportedCulturesAsync(); - return new ArrayValue(supportedCultures.Select(x => new CultureValue(CultureInfo.GetCultureInfo(x))).ToArray()); + + return new ArrayValue(supportedCultures.Select(c => new CultureValue(CultureInfo.GetCultureInfo(c))).ToArray()); } private static async ValueTask GetDefaultCultureAsync(TemplateContext context)