fix(module: message): exception casue by Invariant Globalization setting (#2697)

This commit is contained in:
James Yeung 2022-09-12 23:42:00 +08:00 committed by GitHub
parent 4b4028c9c1
commit 0d371200da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{