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 cdd17ab commit fe91417
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private static async ValueTask<FluidValue> GetDefaultCultureAsync(TemplateContex

var services = ctx.Services;
var localizationService = services.GetRequiredService<ILocalizationService>();

return new CultureValue(CultureInfo.GetCultureInfo(await localizationService.GetDefaultCultureAsync()));
}
}

0 comments on commit fe91417

Please sign in to comment.