We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a418c commit a2cfc31Copy full SHA for a2cfc31
1 file changed
src/components/BootstrapBlazor.Markdown/Components/Markdown/Markdown.razor.cs
@@ -3,6 +3,7 @@
3
// Website: https://www.blazor.zone or https://argozhang.github.io/
4
5
using Microsoft.AspNetCore.Components;
6
+using System.Globalization;
7
using System.Reflection.Metadata;
8
9
namespace BootstrapBlazor.Components;
@@ -97,7 +98,7 @@ protected override void OnInitialized()
97
98
99
Option.PreviewStyle = PreviewStyle.ToDescriptionString();
100
Option.InitialEditType = InitialEditType.ToDescriptionString();
- Option.Language = Language;
101
+ Option.Language = Language ?? CultureInfo.CurrentUICulture.Name;
102
Option.Placeholder = Placeholder;
103
Option.Height = $"{Height}px";
104
Option.MinHeight = $"{MinHeight}px";
0 commit comments