Browse Source

docs scribn parameter language code

pull/2550/head
Yunus Emre Kalkan 7 years ago
parent
commit
2d7df8e75e
  1. 2
      modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

2
modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs

@ -393,7 +393,7 @@ namespace Volo.Docs.Pages.Documents.Project
{ {
await SetDocumentPreferences(); await SetDocumentPreferences();
SetUserPreferences(); SetUserPreferences();
UserPreferences.Add("Document_Language_Code", LanguageCode);
Document.Content = await _documentSectionRenderer.RenderAsync(Document.Content, UserPreferences); Document.Content = await _documentSectionRenderer.RenderAsync(Document.Content, UserPreferences);
var converter = _documentToHtmlConverterFactory.Create(Document.Format ?? Project.Format); var converter = _documentToHtmlConverterFactory.Create(Document.Format ?? Project.Format);

Loading…
Cancel
Save