Class AbpTagHelperLocalizer
Inheritance
System.Object
AbpTagHelperLocalizer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.dll
Syntax
public class AbpTagHelperLocalizer : IAbpTagHelperLocalizer, ITransientDependency
Constructors
AbpTagHelperLocalizer(IOptions<AbpMvcDataAnnotationsLocalizationOptions>, IStringLocalizerFactory)
Declaration
public AbpTagHelperLocalizer(IOptions<AbpMvcDataAnnotationsLocalizationOptions> options, IStringLocalizerFactory stringLocalizerFactory)
Parameters
Type | Name | Description |
---|---|---|
IOptions<AbpMvcDataAnnotationsLocalizationOptions> | options | |
IStringLocalizerFactory | stringLocalizerFactory |
Methods
GetLocalizedText(String, ModelExplorer)
Declaration
public string GetLocalizedText(string text, ModelExplorer explorer)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
ModelExplorer | explorer |
Returns
Type | Description |
---|---|
System.String |
GetLocalizerOrNull(ModelExplorer)
Declaration
public IStringLocalizer GetLocalizerOrNull(ModelExplorer explorer)
Parameters
Type | Name | Description |
---|---|---|
ModelExplorer | explorer |
Returns
Type | Description |
---|---|
IStringLocalizer |
GetLocalizerOrNull(Assembly)
Declaration
public IStringLocalizer GetLocalizerOrNull(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | assembly |
Returns
Type | Description |
---|---|
IStringLocalizer |
Implements
ITransientDependency