From 76b166740ef6273c3db8ab6368c5ddb9251befd7 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 23 May 2026 11:48:13 +0800 Subject: [PATCH] doc(HostModel): support en-US language --- .../Components/Pages/HostModel.razor | 19 ++++++++++--------- src/BootstrapBlazor.Server/Locales/en-US.json | 9 +++++++++ src/BootstrapBlazor.Server/Locales/zh-CN.json | 9 +++++++++ 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Pages/HostModel.razor b/src/BootstrapBlazor.Server/Components/Pages/HostModel.razor index 0e747d9dac9..5b7725cb36f 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/HostModel.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/HostModel.razor @@ -1,36 +1,37 @@ @page "/host-model" @inject IOptions WebsiteOption +@inject IStringLocalizer Localizer -

ASP.NET Core Blazor 托管模型

+

@Localizer["Title"]

-

目前 ASP.NET Core Blazor 的托管模型一共有三种,分别是

+

@Localizer["HostModelsIntro"]

-

目前我们推荐使用 Blazor Server 托管模型

+

@((MarkupString)Localizer["RecommendServer"].Value)

-

使用最新版 Visual Studio 新建 Blazor 项目时选择 Blazor Web App

+

@((MarkupString)Localizer["CreateProject"].Value)

-

Interactive render mode 又分为以下几种方式

+

@((MarkupString)Localizer["RenderModeIntro"].Value)

  • None
  • -
  • Server (新手强烈推荐)
  • +
  • Server @Localizer["Recommended"]
  • WebAssembly
  • Auto
-

Interactivity Location 又分为以下两种方式

+

@((MarkupString)Localizer["InteractivityLocationIntro"].Value)

  • Per page/component
  • -
  • Global (新手强烈推荐)
  • +
  • Global @Localizer["Recommended"]