diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 982ac6f3e..e306e8d5c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: branches: - main - dev + - dev-table jobs: deploy: diff --git a/README.md b/README.md index deb9cf96f..91918cc6e 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ [![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE) [![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor) [![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor) -[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) +[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/main/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) ---- - English | 中文 +--- + ## Features - Enterprise-class UI designed for web applications. - A set of high-quality Blazor components out of the box. diff --git a/README.zh-CN.md b/README.zh-CN.md index db77e3e23..f3e5729b9 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -9,9 +9,8 @@ [![Github](https://img.shields.io/github/license/argozhang/bootstrapblazor.svg?logo=git&logoColor=red)](https://github.com/ArgoZhang/BootstrapBlazor/blob/main/LICENSE) [![Repo Size](https://img.shields.io/github/repo-size/ArgoZhang/BootstrapBlazor.svg?logo=github&logoColor=green&label=repo)](https://github.com/ArgoZhang/BootstrapBlazor) [![Commit Date](https://img.shields.io/github/last-commit/ArgoZhang/BootstrapBlazor/main.svg?logo=github&logoColor=green&label=commit)](https://github.com/ArgoZhang/BootstrapBlazor) -[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/master/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) +[![codecov](https://codecov.io/gh/dotnetcore/BootstrapBlazor/branch/main/graph/badge.svg?token=5SXIWHXZC3)](https://codecov.io/gh/dotnetcore/BootstrapBlazor) ---- English | 中文 @@ -38,11 +37,14 @@ Blazor 是一个使用 .NET 生成交互式客户端 Web UI 的框架: ## 生态伙伴 -WTM 快速开发框架,设计的核心理念就是”尽一切可能提高开发效率“。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) +WTM 快速开发框架,设计的核心理念就是 "尽一切可能提高开发效率"。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) +WTM 快速开发框架,设计的核心理念就是 "尽一切可能提高开发效率"。WTM框架把常规编码结构化,重复编码自动化,它不仅是一个框架,它是强有力的生产力工具!目前 WTM 快速开发框架已深度集成 Blazor 欢迎大家使用 [传送门](https://wtmdoc.walkingtec.cn) + ## 开发环境搭建 + 1. 安装 .net core sdk 最新版 [官方网址](http://www.microsoft.com/net/download) 2. 安装 Visual Studio 2022 最新版 [官方网址](https://visualstudio.microsoft.com/vs/getting-started/) 3. 获取本项目代码 [BootstrapBlazor](https://gitee.com/LongbowEnterprise/BootstrapBlazor) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index ab5dc2299..bd053e683 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@ - 6.0.9 + 6.0.10 diff --git a/test/UnitTest.Localization/LocalizerEnTest.cs b/test/UnitTest.Localization/LocalizerEnTest.cs index 9db0e5c5e..c9cf3136d 100644 --- a/test/UnitTest.Localization/LocalizerEnTest.cs +++ b/test/UnitTest.Localization/LocalizerEnTest.cs @@ -7,6 +7,7 @@ using BootstrapBlazor.Shared; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; using System.ComponentModel.DataAnnotations; +using System.Globalization; using UnitTest.Core; using Xunit; @@ -32,6 +33,8 @@ namespace UnitTest.Localization [Fact] public void Dummy_Resource_Ok() { + Assert.Equal("en-US", CultureInfo.CurrentUICulture.Name); + var val = Utility.GetDisplayName(typeof(DummyEn), nameof(DummyEn.Name)); Assert.Equal("TestName", val); diff --git a/test/UnitTest.Localization/LocalizerZhTest.cs b/test/UnitTest.Localization/LocalizerZhTest.cs index 835350b84..f33e5648f 100644 --- a/test/UnitTest.Localization/LocalizerZhTest.cs +++ b/test/UnitTest.Localization/LocalizerZhTest.cs @@ -7,6 +7,7 @@ using BootstrapBlazor.Shared; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Localization; using System.ComponentModel.DataAnnotations; +using System.Globalization; using UnitTest.Core; using Xunit; @@ -32,6 +33,8 @@ namespace UnitTest.Localization [Fact] public void Dummy_Resource_Ok() { + Assert.Equal("zh-CN", CultureInfo.CurrentUICulture.Name); + var val = Utility.GetDisplayName(typeof(Dummy), nameof(Dummy.Name)); Assert.Equal("姓名", val);