mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
fix(module: message): exception casue by Invariant Globalization setting (#2697)
This commit is contained in:
parent
4b4028c9c1
commit
0d371200da
@ -13,11 +13,9 @@ namespace AntDesign
|
||||
|
||||
protected const string PrefixCls = "ant-message";
|
||||
|
||||
private CultureInfo _cultureInfo = new CultureInfo("en-us", false);
|
||||
|
||||
private string GetClassName()
|
||||
{
|
||||
var className = $"{PrefixCls}-{Config.Type.ToString().ToLower(_cultureInfo)}";
|
||||
var className = $"{PrefixCls}-{Config.Type.ToString().ToLower(CultureInfo.InvariantCulture)}";
|
||||
|
||||
if (RTL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user