Skip to content

Commit 9459aeb

Browse files
authored
feat(CherryMarkdown): bump version 9.0.3 (#490)
* fix: 修复 zh-CH 文化报错问题 * chore: bump version 9.0.3
1 parent 57ccadb commit 9459aeb

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.2</Version>
4+
<Version>9.0.3</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export async function init(id, invoke, options, callback) {
5858
},
5959
fileUpload: fileUpload
6060
};
61+
62+
if (op.locale) {
63+
op.locale = op.locale.replace('-', '_');
64+
}
65+
6166
const editor = new Cherry(op);
6267
const md = { invoke, editor };
6368
Data.set(id, md);

0 commit comments

Comments
 (0)