Class MasterDataStringLocalizer
- Namespace
- JJMasterData.Commons.Localization
- Assembly
- JJMasterData.Commons.dll
public sealed class MasterDataStringLocalizer : IStringLocalizer
- Inheritance
-
MasterDataStringLocalizer
- Implements
- Inherited Members
Constructors
MasterDataStringLocalizer(string, IStringLocalizer, IEntityRepository, IMemoryCache, IOptionsMonitor<MasterDataCommonsOptions>)
public MasterDataStringLocalizer(string resourceName, IStringLocalizer resourcesStringLocalizer, IEntityRepository entityRepository, IMemoryCache cache, IOptionsMonitor<MasterDataCommonsOptions> options)
Parameters
resourceName
stringresourcesStringLocalizer
IStringLocalizerentityRepository
IEntityRepositorycache
IMemoryCacheoptions
IOptionsMonitor<MasterDataCommonsOptions>
Properties
this[string?]
Gets the string resource with the given name.
public LocalizedString this[string? name] { get; }
Parameters
name
stringThe name of the string resource.
Property Value
- LocalizedString
The string resource as a LocalizedString.
this[string?, object[]]
Gets the string resource with the given name and formatted with the supplied arguments.
public LocalizedString this[string? name, params object[] arguments] { get; }
Parameters
name
stringThe name of the string resource.
arguments
object[]The values to format the string with.
Property Value
- LocalizedString
The formatted string resource as a LocalizedString.
Methods
GetAllStrings(bool)
Gets all string resources.
public IEnumerable<LocalizedString> GetAllStrings(bool includeParentCultures)
Parameters
Returns
- IEnumerable<LocalizedString>
The strings.