修改国际化配置提前

This commit is contained in:
2024-10-17 10:35:56 +08:00
parent 8a3eb61a34
commit 9e057ff815
3 changed files with 30 additions and 7 deletions
@@ -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];
}
}
}