Skip to content

Commit 374508f

Browse files
committed
doc: 增加本地化
1 parent c2aa3a7 commit 374508f

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55

66
<h4>@Localizer["MultiSelectsDescription"]</h4>
77

8-
<DemoBlock Title="@Localizer["MultiSelectIsEditableTitle"]" Introduction="@Localizer["MultiSelectIsEditableIntro"]" Name="IsEditable">
9-
<section ignore>
10-
@((MarkupString)Localizer["MultiSelectIsEditableDescription"].Value)
11-
</section>
12-
<div class="row g-3">
13-
<div class="col-12">
14-
<MultiSelect TValue="string" Items="@EditableItems" IsEditable="true" EditSubmitKey="EditSubmitKey.Space" />
15-
</div>
16-
</div>
17-
</DemoBlock>
18-
198
<DemoBlock Title="@Localizer["MultiSelectColorTitle"]" Introduction="@Localizer["MultiSelectColorIntro"]" Name="Color">
209
<div class="row g-3">
2110
<div class="col-12 col-sm-6">
@@ -253,6 +242,17 @@
253242
</div>
254243
</DemoBlock>
255244

245+
<DemoBlock Title="@Localizer["MultiSelectIsEditableTitle"]" Introduction="@Localizer["MultiSelectIsEditableIntro"]" Name="IsEditable">
246+
<section ignore>
247+
@((MarkupString)Localizer["MultiSelectIsEditableDescription"].Value)
248+
</section>
249+
<div class="row g-3">
250+
<div class="col-12">
251+
<MultiSelect TValue="string" Items="@EditableItems" IsEditable="true" Max="2" EditSubmitKey="EditSubmitKey.Space" />
252+
</div>
253+
</div>
254+
</DemoBlock>
255+
256256
<AttributeTable Items="@GetAttributes()" />
257257

258258
<EventTable Items="@GetEvents()" />

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2987,7 +2987,10 @@
29872987
"MultiSelectMaxMinMin": "Select at least two options",
29882988
"MultiSelectSearchLog": "Search for text",
29892989
"MultiSelectVeryLongTextDisplayText": "Extra long text",
2990-
"MultiSelectOptionChangeLog": "Select the collection of items"
2990+
"MultiSelectOptionChangeLog": "Select the collection of items",
2991+
"MultiSelectIsEditableTitle": "Editable",
2992+
"MultiSelectIsEditableIntro": "Make the component editable by setting the <code>IsEditable</code> parameter",
2993+
"MultiSelectIsEditableDescription": "By setting the <code>EditSubmitKey</code> parameter, you can specify whether to submit via <kbd>Enter</kbd> or <kbd>Space</kbd>"
29912994
},
29922995
"BootstrapBlazor.Server.Components.Samples.Radios": {
29932996
"RadiosTitle": "Radio",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2987,7 +2987,10 @@
29872987
"MultiSelectMaxMinMin": "最少选择两个选项",
29882988
"MultiSelectSearchLog": "搜索文字",
29892989
"MultiSelectVeryLongTextDisplayText": "超长文字",
2990-
"MultiSelectOptionChangeLog": "选中项集合"
2990+
"MultiSelectOptionChangeLog": "选中项集合",
2991+
"MultiSelectIsEditableTitle": "可编辑",
2992+
"MultiSelectIsEditableIntro": "通过设置 <code>IsEditable</code> 参数,使组件可编辑",
2993+
"MultiSelectIsEditableDescription": "通过设置 <code>EditSubmitKey</code> 参数可以指定通过 <kbd>Enter</kbd> 还是 <kbd>Space</kbd> 进行提交"
29912994
},
29922995
"BootstrapBlazor.Server.Components.Samples.Radios": {
29932996
"RadiosTitle": "Radio 单选框",

0 commit comments

Comments
 (0)