/// <summary> /// Renders the Script-block at the current location /// </summary> /// <returns>a html-script representing the requested script-block</returns> public IHtmlContent RenderLocalizationScript(IHtmlHelper html) { StringBuilder bld = new StringBuilder(); var ext = $"{rnd.Next(10000000)}_{DateTime.Now.Ticks}"; bld.AppendLine("<script type=\"text/javascript\">"); try { bld.Append(resourceProvider.DumpLocalizer(ext)); } finally { bld.AppendLine("</script>"); } return(html.Raw(bld.ToString())); }