mirror of
https://github.com/bitwarden/server.git
synced 2025-07-04 09:32:48 -05:00
Run formatting (#2230)
This commit is contained in:
@ -2,36 +2,35 @@
|
||||
using Bit.Core.Resources;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
namespace Bit.Core.Services;
|
||||
|
||||
public class I18nService : II18nService
|
||||
{
|
||||
public class I18nService : II18nService
|
||||
private readonly IStringLocalizer _localizer;
|
||||
|
||||
public I18nService(IStringLocalizerFactory factory)
|
||||
{
|
||||
private readonly IStringLocalizer _localizer;
|
||||
var assemblyName = new AssemblyName(typeof(SharedResources).GetTypeInfo().Assembly.FullName);
|
||||
_localizer = factory.Create("SharedResources", assemblyName.Name);
|
||||
}
|
||||
|
||||
public I18nService(IStringLocalizerFactory factory)
|
||||
{
|
||||
var assemblyName = new AssemblyName(typeof(SharedResources).GetTypeInfo().Assembly.FullName);
|
||||
_localizer = factory.Create("SharedResources", assemblyName.Name);
|
||||
}
|
||||
public LocalizedString GetLocalizedHtmlString(string key)
|
||||
{
|
||||
return _localizer[key];
|
||||
}
|
||||
|
||||
public LocalizedString GetLocalizedHtmlString(string key)
|
||||
{
|
||||
return _localizer[key];
|
||||
}
|
||||
public LocalizedString GetLocalizedHtmlString(string key, params object[] args)
|
||||
{
|
||||
return _localizer[key, args];
|
||||
}
|
||||
|
||||
public LocalizedString GetLocalizedHtmlString(string key, params object[] args)
|
||||
{
|
||||
return _localizer[key, args];
|
||||
}
|
||||
public string Translate(string key, params object[] args)
|
||||
{
|
||||
return string.Format(GetLocalizedHtmlString(key).ToString(), args);
|
||||
}
|
||||
|
||||
public string Translate(string key, params object[] args)
|
||||
{
|
||||
return string.Format(GetLocalizedHtmlString(key).ToString(), args);
|
||||
}
|
||||
|
||||
public string T(string key, params object[] args)
|
||||
{
|
||||
return Translate(key, args);
|
||||
}
|
||||
public string T(string key, params object[] args)
|
||||
{
|
||||
return Translate(key, args);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user