IStringLocalizer Interface

Definition

Represents a service that provides localized strings.

public interface IStringLocalizer
Derived

Properties

Item[String, Object[]]

Gets the string resource with the given name and formatted with the supplied arguments.

Item[String]

Gets the string resource with the given name.

Methods

GetAllStrings(Boolean)

Gets all string resources.

Extension Methods

GetAllStrings(IStringLocalizer)

Gets all string resources including those for parent cultures.

GetString(IStringLocalizer, String, Object[])

Gets the string resource with the given name and formatted with the supplied arguments.

GetString(IStringLocalizer, String)

Gets the string resource with the given name.

Applies to

Product Versions
.NET 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)