修改国际化配置提前
This commit is contained in:
@@ -20,12 +20,29 @@ public static class I18n
|
||||
|
||||
public static string T(string key)
|
||||
{
|
||||
return _localizer[key];
|
||||
if(_localizer is null)
|
||||
{
|
||||
return key;
|
||||
}
|
||||
else
|
||||
{
|
||||
return _localizer[key];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static string T(string key, params object[] arguments)
|
||||
{
|
||||
return _localizer[key, arguments];
|
||||
if (_localizer is null)
|
||||
{
|
||||
return key;
|
||||
}
|
||||
else
|
||||
{
|
||||
return _localizer[key, arguments];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user