Skip to content

Commit 117ecd8

Browse files
committed
doc: 更改注释为英文
1 parent 715e16c commit 117ecd8

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,126 +9,126 @@
99
namespace BootstrapBlazor.Components;
1010

1111
/// <summary>
12-
/// 组件全局配置类
12+
/// Global configuration class for components
1313
/// </summary>
1414
public class BootstrapBlazorOptions : IOptions<BootstrapBlazorOptions>
1515
{
1616
/// <summary>
17-
/// 获得/设置 Toast 组件 Delay 默认值 默认为 0
17+
/// Gets or sets the default delay for the Toast component, default is 0
1818
/// </summary>
1919
public int ToastDelay { get; set; }
2020

2121
/// <summary>
22-
/// 获得/设置 Message 组件 Delay 默认值 默认为 0
22+
/// Gets or sets the default delay for the Message component, default is 0
2323
/// </summary>
2424
public int MessageDelay { get; set; }
2525

2626
/// <summary>
27-
/// 获得/设置 Swal 组件 Delay 默认值 默认为 0
27+
/// Gets or sets the default delay for the Swal component, default is 0
2828
/// </summary>
2929
public int SwalDelay { get; set; }
3030

3131
/// <summary>
32-
/// 获得/设置 回落默认语言文化 默认为 en 英文
32+
/// Gets or sets the fallback default language culture, default is "en" (English)
3333
/// </summary>
3434
public string FallbackCulture { get; set; } = "en";
3535

3636
/// <summary>
37-
/// 获得/设置 Toast 组件全局弹窗默认位置 默认为 null 当设置值后覆盖整站设置
37+
/// Gets or sets the default position for the Toast component globally, default is null. When set, it overrides the site-wide setting.
3838
/// </summary>
3939
public Placement? ToastPlacement { get; set; }
4040

4141
/// <summary>
42-
/// 获得/设置 组件内置本地化语言列表 默认为 null
42+
/// Gets or sets the list of built-in localization languages for components, default is null
4343
/// </summary>
4444
public List<string>? SupportedCultures { get; set; }
4545

4646
/// <summary>
47-
/// 获得/设置 是否开启全局异常捕获功能 默认为 true
47+
/// Gets or sets whether to enable global exception capture functionality, default is true
4848
/// </summary>
4949
public bool EnableErrorLogger { get; set; } = true;
5050

5151
/// <summary>
52-
/// 获得/设置 是否回落到 Fallback 文化 默认为 true
52+
/// Gets or sets whether to fall back to the fallback culture, default is true
5353
/// </summary>
5454
public bool EnableFallbackCulture { get; set; } = true;
5555

5656
/// <summary>
57-
/// 获得/设置 是否忽略丢失文化日志信息 默认 null 未设置
57+
/// Gets or sets whether to ignore missing culture log information, default is null (not set)
5858
/// </summary>
59-
/// <remarks>使用 <see cref="JsonLocalizationOptions.IgnoreLocalizerMissing"/> 默认值</remarks>
59+
/// <remarks>Uses the default value of <see cref="JsonLocalizationOptions.IgnoreLocalizerMissing"/></remarks>
6060
public bool? IgnoreLocalizerMissing { get; set; }
6161

6262
/// <summary>
63-
/// 获得/设置 是否禁用从服务中获取本地化资源 默认 false 未禁用
63+
/// Gets or sets whether to disable fetching localization resources from the service, default is false (not disabled)
6464
/// </summary>
6565
public bool? DisableGetLocalizerFromService { get; set; }
6666

6767
/// <summary>
68-
/// 获得/设置 是否禁用获取 <see cref="ResourceManagerStringLocalizer"/> 类型本地化资源 默认 false 未禁用
68+
/// Gets or sets whether to disable fetching localization resources of type <see cref="ResourceManagerStringLocalizer"/>, default is false (not disabled)
6969
/// </summary>
7070
public bool? DisableGetLocalizerFromResourceManager { get; set; }
7171

7272
/// <summary>
73-
/// 获得/设置 默认文化信息
73+
/// Gets or sets the default culture information
7474
/// </summary>
75-
/// <remarks>开启多文化时此参数无效</remarks>
75+
/// <remarks>This parameter is invalid when multi-culture is enabled</remarks>
7676
public string? DefaultCultureInfo { get; set; }
7777

7878
/// <summary>
79-
/// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置
79+
/// Gets or sets whether to disable the automatic form submission feature by pressing Enter, default is null (not set)
8080
/// </summary>
8181
public bool? DisableAutoSubmitFormByEnter { get; set; }
8282

8383
/// <summary>
84-
/// 获得/设置 JavaScript 模块脚本版本号 默认为 null
84+
/// Gets or sets the JavaScript module script version number, default is null
8585
/// </summary>
8686
public string? JSModuleVersion { get; set; }
8787

8888
/// <summary>
89-
/// 获得/设置 表格设置实例
89+
/// Gets or sets the table settings instance
9090
/// </summary>
9191
public TableSettings TableSettings { get; set; } = new();
9292

9393
/// <summary>
94-
/// 获得/设置 <see cref="StepSettings"/> 配置实例
94+
/// Gets or sets the <see cref="StepSettings"/> configuration instance
9595
/// </summary>
9696
public StepSettings StepSettings { get; set; } = new();
9797

9898
/// <summary>
99-
/// 获得/设置 <see cref="ConnectionHubOptions"/> 配置 默认不为空
99+
/// Gets or sets the <see cref="ConnectionHubOptions"/> configuration, default is not null
100100
/// </summary>
101101
public ConnectionHubOptions ConnectionHubOptions { get; set; } = new();
102102

103103
/// <summary>
104-
/// 获得/设置 <see cref="WebClientOptions"/> 配置 默认不为空
104+
/// Gets or sets the <see cref="WebClientOptions"/> configuration, default is not null
105105
/// </summary>
106106
public WebClientOptions WebClientOptions { get; set; } = new();
107107

108108
/// <summary>
109-
/// 获得/设置 <see cref="IpLocatorOptions"/> 配置 默认不为空
109+
/// Gets or sets the <see cref="IpLocatorOptions"/> configuration, default is not null
110110
/// </summary>
111111
public IpLocatorOptions IpLocatorOptions { get; set; } = new();
112112

113113
/// <summary>
114-
/// 获得/设置 <see cref="ScrollOptions"/> 配置 默认不为空
114+
/// Gets or sets the <see cref="ScrollOptions"/> configuration, default is not null
115115
/// </summary>
116116
public ScrollOptions ScrollOptions { get; set; } = new();
117117

118118
/// <summary>
119-
/// 获得/设置 <see cref="ContextMenuOptions"/> 配置 默认不为空
119+
/// Gets or sets the <see cref="ContextMenuOptions"/> configuration, default is not null
120120
/// </summary>
121121
public ContextMenuOptions ContextMenuOptions { get; set; } = new();
122122

123123
/// <summary>
124-
/// 获得/设置 CacheManagerOptions 配置 默认不为空
124+
/// Gets or sets the CacheManagerOptions configuration, default is not null
125125
/// </summary>
126126
public CacheManagerOptions CacheManagerOptions { get; set; } = new();
127127

128128
BootstrapBlazorOptions IOptions<BootstrapBlazorOptions>.Value => this;
129129

130130
/// <summary>
131-
/// 获得支持多语言集合
131+
/// Gets the collection of supported languages
132132
/// </summary>
133133
/// <returns></returns>
134134
public IList<CultureInfo> GetSupportedCultures() => SupportedCultures?.Select(name => new CultureInfo(name)).ToList()

0 commit comments

Comments
 (0)