Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions src/BootstrapBlazor.Server/Components/Samples/Ips.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@page "/ip"
@inject IStringLocalizer<Ips> Localizer

<h3>@Localizer["IpTitle"]</h3>

<h4>@Localizer["IpSubTitle"]</h4>

<DemoBlock Title="@Localizer["IpNormalTitle"]" Introduction="@Localizer["IpNormalIntro"]" Name="Normal">
<IpAddress @bind-Value="@Value" />
<div class="mt-3">@Value</div>
Comment on lines +4 to 10
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locales add IsDisabledTitle/IsDisabledIntro, but this page does not include a corresponding demo. Please add a DemoBlock showcasing the disabled state, for example:

<IpAddress @bind-Value='@value' IsDisabled='true' />

Copilot uses AI. Check for mistakes.
Expand Down
6 changes: 5 additions & 1 deletion src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -3944,8 +3944,12 @@
"FeatureShowHolidays": "Holidays"
},
"BootstrapBlazor.Server.Components.Samples.Ips": {
"IpTitle": "IpAddress",
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use standard capitalization and spacing for clarity and consistency with the subtitle; change 'IpAddress' to 'IP Address'.

Suggested change
"IpTitle": "IpAddress",
"IpTitle": "IP Address",

Copilot uses AI. Check for mistakes.
"IpSubTitle": "The IP Address component is a reusable component for entering and validating IP addresses.",
"IpNormalTitle": "Basic usage",
"IpNormalIntro": "Enter and display the <code>ip</code> address in sections, for example: <code>192.168.1.1</code>"
"IpNormalIntro": "Enter and display the <code>ip</code> address in sections, for example: <code>192.168.1.1</code>",
"IsDisabledTitle": "IsDisabled",
"IsDisabledIntro": "Make the component disabled by setting <code>IsDisabled</code>"
},
"BootstrapBlazor.Server.Components.Samples.Displays": {
"Title": "Display",
Expand Down
6 changes: 5 additions & 1 deletion src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3944,8 +3944,12 @@
"FeatureShowHolidays": "法定假日"
},
"BootstrapBlazor.Server.Components.Samples.Ips": {
"IpTitle": "IpAddress 地址组件",
"IpSubTitle": "IP 地址组件是一个用于输入和验证 IP 地址的可重用组件",
"IpNormalTitle": "基础用法",
"IpNormalIntro": "分段录入并显示 <code>ip</code> 地址,例如:<code>192.168.1.1</code>"
"IpNormalIntro": "分段录入并显示 <code>ip</code> 地址,例如:<code>192.168.1.1</code>",
"IsDisabledTitle": "禁用",
"IsDisabledIntro": "通过设置 <code>IsDisabled</code> 使组件处于不可用状态"
},
"BootstrapBlazor.Server.Components.Samples.Displays": {
"Title": "Display 显示组件",
Expand Down
Loading