diff --git a/src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor b/src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor index 0f002397d22..dcabf70cfd0 100644 --- a/src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor +++ b/src/BootstrapBlazor.Server/Components/Components/BlazorReconnector.razor @@ -1,4 +1,5 @@ @inject IOptions WebsiteOption +@inject IStringLocalizer Localizer @@ -7,13 +8,13 @@
@RenderBootstrapBlazor
-
Reconnector 组件
-

正在尝试重新连接服务器

-

服务器正在更新新版本,稍等一会儿即可提供服务,或者 F12 打开 Developer tools 查看 控制台 是否有错误输出,请扫描左侧二维码加群与管理员联系

+
@Localizer["Title"]
+

@Localizer["ReconnectingTitle"]

+

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

@@ -25,14 +26,14 @@
@RenderBootstrapBlazor
-
Reconnector 组件
-

与服务器连接失败

-
请确认网络是否正常,或者 F12 打开 Developer tools 查看 控制台 是否有错误输出,请扫描左侧二维码加群与管理员联系
+
@Localizer["Title"]
+

@Localizer["ReconnectFailedTitle"]

+
@((MarkupString)Localizer["ReconnectFailedDescription"].Value)
@@ -44,13 +45,13 @@
@RenderBootstrapBlazor
-
Reconnector 组件
-

服务器拒绝连接

-
所有的连接尝试都被拒绝了,这很有可能是由于网络问题或者服务器问题引起的,请扫描左侧二维码加群与管理员联系
+
@Localizer["Title"]
+

@Localizer["ReconnectRejectedTitle"]

+
@((MarkupString)Localizer["ReconnectRejectedDescription"].Value)
@@ -63,13 +64,13 @@ RenderFragment RenderBootstrapBlazor => @
-
Bootstrap Blazor UI 组件库
+
@Localizer["UILibraryTitle"]
-

一套基于 Bootstrap 样式的企业级 Blazor UI 组件库,支持 Server 与 WebAssembly

-

适配移动端支持各种主流浏览器以及移动端,适配 ABP,同时支持 @WebsiteOption.Value.GetTargets()

+

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

+

@((MarkupString)string.Format(Localizer["UILibraryDescription2"].Value, WebsiteOption.Value.GetTargets()))

-
已提供项目模板方便快速上手 项目模板
+
@Localizer["TemplateText"] @Localizer["TemplateLink"]
QQGroup
diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 175480e25da..9afe65914de 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -5992,5 +5992,21 @@ "NullItemText": "Not Set", "ReadonlyColumn": "Readonly Column", "True": "Pass" + }, + "BootstrapBlazor.Server.Components.Components.BlazorReconnector": { + "Title": "Reconnector Component", + "ReconnectingTitle": "Attempting to reconnect to the server", + "ReconnectingDescription": "The server is updating to a new version, please wait a moment for service to be available, or press F12 to open Developer tools and check the console for any error output. Please scan the QR code on the left to join the group and contact the administrator", + "ReconnectButton": "Reconnect", + "ReconnectFailedTitle": "Failed to connect to server", + "ReconnectFailedDescription": "Please confirm that your network is working properly, or press F12 to open Developer tools and check the console for any error output. Please scan the QR code on the left to join the group and contact the administrator", + "ReloadButton": "Reload", + "ReconnectRejectedTitle": "Server rejected connection", + "ReconnectRejectedDescription": "All connection attempts have been rejected, which is most likely caused by network or server issues. Please scan the QR code on the left to join the group and contact the administrator", + "UILibraryTitle": "Bootstrap Blazor UI Component Library", + "UILibraryDescription1": "An enterprise-level Blazor UI component library based on Bootstrap styles, supporting both Server and WebAssembly", + "UILibraryDescription2": "Mobile-responsive, supports all major browsers and mobile devices, compatible with ABP, and supports {0}", + "TemplateLink": "Project Templates", + "TemplateText": "Project templates are provided for quick start" } } diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 972c2fdd5a5..df44111e356 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -5992,5 +5992,21 @@ "NullItemText": "未设置", "ReadonlyColumn": "只读列", "True": "通过" + }, + "BootstrapBlazor.Server.Components.Components.BlazorReconnector": { + "Title": "Reconnector 组件", + "ReconnectingTitle": "正在尝试重新连接服务器", + "ReconnectingDescription": "服务器正在更新新版本,稍等一会儿即可提供服务,或者 F12 打开 Developer tools 查看 控制台 是否有错误输出,请扫描左侧二维码加群与管理员联系", + "ReconnectButton": "重新连接", + "ReconnectFailedTitle": "与服务器连接失败", + "ReconnectFailedDescription": "请确认网络是否正常,或者 F12 打开 Developer tools 查看 控制台 是否有错误输出,请扫描左侧二维码加群与管理员联系", + "ReloadButton": "重新加载", + "ReconnectRejectedTitle": "服务器拒绝连接", + "ReconnectRejectedDescription": "所有的连接尝试都被拒绝了,这很有可能是由于网络问题或者服务器问题引起的,请扫描左侧二维码加群与管理员联系", + "UILibraryTitle": "Bootstrap Blazor UI 组件库", + "UILibraryDescription1": "一套基于 Bootstrap 样式的企业级 Blazor UI 组件库,支持 Server 与 WebAssembly", + "UILibraryDescription2": "适配移动端支持各种主流浏览器以及移动端,适配 ABP,同时支持 {0}", + "TemplateLink": "项目模板", + "TemplateText": "已提供项目模板方便快速上手" } }