Class AbpTagHelperLocalizer
Inheritance
object
AbpTagHelperLocalizer
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpMvcDataAnnotationsLocalizationOptions> | options | |
| Microsoft.Extensions.Localization.IStringLocalizerFactory | stringLocalizerFactory |
Methods
GetLocalizedText(string, ModelExplorer)
Declaration
public string GetLocalizedText(string text, ModelExplorer explorer)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | |
| Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer | explorer |
Returns
| Type | Description |
|---|---|
| string |
GetLocalizerOrNull(ModelExplorer)
Declaration
public IStringLocalizer GetLocalizerOrNull(ModelExplorer explorer)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer | explorer |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.Localization.IStringLocalizer |
GetLocalizerOrNull(Assembly)
Declaration
public IStringLocalizer GetLocalizerOrNull(Assembly assembly)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Assembly | assembly |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.Localization.IStringLocalizer |