Skip to content

Commit e5f95f1

Browse files
authored
doc(Footer): update footer/header text localization (#2706)
* doc: 更新网站实战资源文件 * refactor: 更新 Footer * doc: 更新主题按钮显示逻辑
1 parent 180db76 commit e5f95f1

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

src/BootstrapBlazor.Server/Components/Components/Header.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<a class="nav-link" href="components">@ComponentsText</a>
1919
</li>
2020
<li class="nav-item">
21-
<a class="nav-link" href="practice">实战</a>
21+
<a class="nav-link" href="practice">@TutorialsText</a>
2222
</li>
2323
</ul>
2424
</div>

src/BootstrapBlazor.Server/Components/Components/Header.razor.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public partial class Header
3535
[NotNull]
3636
private string? DownloadText { get; set; }
3737

38+
[NotNull]
39+
private string? TutorialsText { get; set; }
40+
3841
private string DownloadUrl => $"{WebsiteOption.CurrentValue.GiteeRepositoryUrl}/repository/archive/main.zip";
3942

4043
private string _versionString = "";
@@ -50,7 +53,7 @@ protected override void OnInitialized()
5053
HomeText ??= Localizer[nameof(HomeText)];
5154
IntroductionText ??= Localizer[nameof(IntroductionText)];
5255
ComponentsText ??= Localizer[nameof(ComponentsText)];
53-
56+
TutorialsText ??= Localizer[nameof(TutorialsText)];
5457
_versionString = $"v{PackageVersionService.Version}";
5558
}
5659
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@inherits ComponentBase
22

3-
<div class="btn btn-circle btn-fade btn-theme-mode icon-theme d-flex d-sm-none">
3+
<div class="btn btn-circle btn-fade btn-theme-mode icon-theme d-flex d-lg-none">
44
<img src="./images/theme-light.svg" class="icon-light" />
55
<img src="./images/theme-night.svg" class="icon-dark" />
66
</div>

src/BootstrapBlazor.Server/Components/Layout/HomeLayout.razor

-4
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
</div>
7171
<div class="d-flex flex-fill align-items-center justify-content-center">
7272
<a class="d-none d-md-block me-3" href="@WebsiteOption.CurrentValue.GiteeRepositoryUrl" target="_blank">@Localizer["Footer"]</a>
73-
<div class="d-none d-lg-block me-3">
74-
<img alt="12377@2x" class="footer-logo me-1" src="./images/12377@2x.png">
75-
<a href="https://12377.cn" target="_blank">违法和不良信息举报中心</a>
76-
</div>
7773
<a class="d-none d-lg-block me-3" href="https://beian.miit.gov.cn/" target="_blank">苏ICP备16047547号-2</a>
7874
</div>
7975
<div class="d-md-flex d-none">

src/BootstrapBlazor.Server/Locales/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4299,7 +4299,8 @@
42994299
"DownloadText": "Download",
43004300
"HomeText": "Home",
43014301
"ComponentsText": "Components",
4302-
"IntroductionText": "Documents"
4302+
"IntroductionText": "Documents",
4303+
"TutorialsText": "Tutorials"
43034304
},
43044305
"BootstrapBlazor.Server.Components.Layout.BaseLayout": {
43054306
"FlowText": "Workflow",

src/BootstrapBlazor.Server/Locales/zh.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4299,7 +4299,8 @@
42994299
"DownloadText": "Download",
43004300
"HomeText": "首页",
43014301
"ComponentsText": "组件",
4302-
"IntroductionText": "文档"
4302+
"IntroductionText": "文档",
4303+
"TutorialsText": "实战"
43034304
},
43044305
"BootstrapBlazor.Server.Components.Layout.BaseLayout": {
43054306
"FlowText": "工作流",
Binary file not shown.

0 commit comments

Comments
 (0)