Skip to content

Commit 89d7917

Browse files
committed
feat: 增加 UseKeyWhenValueIsNull 参数
1 parent a931393 commit 89d7917

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BootstrapBlazor/Localization/Json/JsonLocalizationOptions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ public class JsonLocalizationOptions : LocalizationOptions
4343
/// </summary>
4444
public bool IgnoreLocalizerMissing { get; set; }
4545

46+
/// <summary>
47+
/// 获得/设置 如果 Value 值为 null 时使用 Key 代替 默认 false 触发异常
48+
/// </summary>
49+
public bool UseKeyWhenValueIsNull { get; set; }
50+
4651
/// <summary>
4752
/// 获得/设置 资源文件是否热加载 默认 false
4853
/// </summary>

0 commit comments

Comments
 (0)