Skip to content

Commit

Permalink
Update src/OrchardCore/OrchardCore.DisplayManagement.Liquid/Values/Cu…
Browse files Browse the repository at this point in the history
…ltureValue.cs

Co-authored-by: Hisham Bin Ateya <[email protected]>
  • Loading branch information
sebastienros and hishamco authored Nov 7, 2024
1 parent fe91417 commit 5f5c400
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ private static async ValueTask<FluidValue> GetSupportedCulturesAsync(TemplateCon
var services = ctx.Services;
var localizationService = services.GetRequiredService<ILocalizationService>();
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<FluidValue> GetDefaultCultureAsync(TemplateContext context)
Expand Down

0 comments on commit 5f5c400

Please sign in to comment.