Try this option - To avoid repeating new MacroSettings { Culture = ... } everywhere, write a utility method:
public static class MacroHelper
{
public static string ResolveWithCurrentCulture(string content)
{
var settings = new MacroSettings
{
Culture = LocalizationContext.CurrentCulture.CultureCode
};
return MacroResolver.Resolve(content, settings);
}
}
Call in Razor:
@Html.Raw(MacroHelper.ResolveWithCurrentCulture(Model.Content2))