diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor index 9cdd69fe8cd..fb06c17ac1e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor @@ -37,6 +37,10 @@ op.Binders.Add("/settings/users", new TabItemOptionAttribute() { Text = "Users", Icon = "fas fa-users" }); }) +
@((MarkupString)Localizer["TabsOnTabHeaderTextLocalizerTitle"].Value)
+ +@((MarkupString)Localizer["TabsOnTabHeaderTextLocalizerIntro"].Value)
+@Localizer["TabsQATitle"]
Layout component, you can render the Tab tag header into the Layout Header template by setting ShowTabInHeader=\"true\". The effect can be viewed by creating a new project in the Project Template"
+ "ShowTabInHeaderDesc": "After enabling the multi-tab function in the Layout component, you can render the Tab tag header into the Layout Header template by setting ShowTabInHeader=\"true\". The effect can be viewed by creating a new project in the Project Template",
+ "TabsOnTabHeaderTextLocalizerTitle": "TabItemOption Localizer",
+ "TabsOnTabHeaderTextLocalizerIntro": "Localization of `TabItemOption` is achieved by setting the `OnTabHeaderTextLocalizer` callback delegate method. The input parameter is the `TabItemOption` parameter `Text`, and the return value is the localized value"
},
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
"Info": "Reset the title of this TabItem by click the button",
diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json
index 3073977a52d..9794332f4bf 100644
--- a/src/BootstrapBlazor.Server/Locales/zh-CN.json
+++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json
@@ -1962,7 +1962,9 @@
"AttributeContextMenuCloseAllIcon": "右键菜单关闭全部按钮图标",
"AttributeContextMenuFullScreenIcon": "右键菜单全屏按钮图标",
"AttributeOnBeforeShowContextMenu": "右键菜单弹出前回调方法",
- "ShowTabInHeaderDesc": "Layout 组件中开启多标签功能后,可以通过设置 ShowTabInHeader=\"true\" 将 Tab 标签头渲染到 Layout Header 模板中,效果可以通过 项目模板 新建工程查看"
+ "ShowTabInHeaderDesc": "Layout 组件中开启多标签功能后,可以通过设置 ShowTabInHeader=\"true\" 将 Tab 标签头渲染到 Layout Header 模板中,效果可以通过 项目模板 新建工程查看",
+ "TabsOnTabHeaderTextLocalizerTitle": "TabItemOption 本地化问题",
+ "TabsOnTabHeaderTextLocalizerIntro": "通过设置 OnTabHeaderTextLocalizer 回调委托方法实现 TabItemOption 本地化,入参为 TabItemOption 参数 Text 值,返回值为本地化后值"
},
"BootstrapBlazor.Server.Components.Components.DemoTabItem": {
"Info": "点击下方按钮,本 TabItem 标题更改为当前分钟与秒",
diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj
index 4f7534435b2..5bafea74269 100644
--- a/src/BootstrapBlazor/BootstrapBlazor.csproj
+++ b/src/BootstrapBlazor/BootstrapBlazor.csproj
@@ -1,7 +1,7 @@