Skip to content

Commit 856b06e

Browse files
committed
doc: 更新本地化文本
1 parent 2c0a447 commit 856b06e

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

src/BootstrapBlazor.Server/Components/Components/GlobalSearch.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@inject IStringLocalizer<GlobalSearch> Localizer
22

33
<MeiliSearchBox SearchBoxPlaceHolder="@Localizer["SearchPlaceHolder"]"
4-
SearchStatus="@Localizer["SearchStatus"]"
5-
EnterKeyText="@Localizer["EnterKeyText"]"
6-
ArrowKeyText="@Localizer["ArrowKeyText"]"
7-
EscKeyText="@Localizer["EscKeyText"]"
4+
SearchingText="@Localizer["SearchingText"]" SearchResultText="@Localizer["SearchResultText"]"
5+
LogoText="@Localizer["LogoText"]"
6+
EnterKeyText="@Localizer["EnterKeyText"]" ArrowKeyText="@Localizer["ArrowKeyText"]" EscKeyText="@Localizer["EscKeyText"]"
87
SearchResultPlaceHolder="@Localizer["SearchResultPlaceHolder"]"
8+
EmptySearchResultPlaceHolder="@Localizer["EmptySearchResultPlaceHolder"]"
99
SearchableColumns="SearchableColumns"></MeiliSearchBox>
1010

1111
@code {

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4468,9 +4468,12 @@
44684468
"Label": "Language:"
44694469
},
44704470
"BootstrapBlazor.Server.Components.Components.GlobalSearch": {
4471-
"SearchPlaceHolder": "search",
4472-
"SearchStatus": "Powered by BootstrapBlazor",
4471+
"SearchPlaceHolder": "Search",
4472+
"SearchingText": "Searching ...",
4473+
"SearchResultText": "Found {0} results in {1}ms",
4474+
"LogoText": "Powered by BootstrapBlazor",
44734475
"SearchResultPlaceHolder": "Type something to search",
4476+
"EmptySearchResultPlaceHolder": "No match searches",
44744477
"EnterKeyText": "to Select",
44754478
"ArrowKeyText": "to Navigate",
44764479
"EscKeyText": "to Close"

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4469,8 +4469,11 @@
44694469
},
44704470
"BootstrapBlazor.Server.Components.Components.GlobalSearch": {
44714471
"SearchPlaceHolder": "搜索",
4472-
"SearchStatus": "Powered by BootstrapBlazor",
4472+
"SearchingText": "正在搜索 ...",
4473+
"SearchResultText": "匹配到 {0} 条记录,耗时 {1} 毫秒",
4474+
"LogoText": "Powered by BootstrapBlazor",
44734475
"SearchResultPlaceHolder": "键入要搜索的内容",
4476+
"EmptySearchResultPlaceHolder": "无匹配搜索",
44744477
"EnterKeyText": "选择",
44754478
"ArrowKeyText": "导航",
44764479
"EscKeyText": "关闭"

0 commit comments

Comments
 (0)