From 5f5c4000f8ac7c7ec10d552d1ba9829df6a1d5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Thu, 7 Nov 2024 14:29:12 -0800 Subject: [PATCH] Update src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/CultureValue.cs Co-authored-by: Hisham Bin Ateya --- .../Values/CultureValue.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)