Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public partial class CherryMarkdown
[Parameter]
public bool IsViewer { get; set; }

/// <summary>
/// 获取/设置 组件语言
/// </summary>
[Parameter]
public string Locale { get; set; } = "zh-CN";

/// <summary>
/// <inheritdoc/>
/// </summary>
Expand Down Expand Up @@ -93,7 +99,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
/// </summary>
/// <returns></returns>
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop,
new { Value, IsSupportMath, IsViewer, Editor = EditorSettings ?? new(), Toolbars = ToolbarSettings ?? new() },
new { Value, IsSupportMath, IsViewer, Locale, Editor = EditorSettings ?? new(), Toolbars = ToolbarSettings ?? new() },
nameof(Upload));

/// <summary>
Expand Down