Class StringLocalizer
Provides localization functionality for strings using resource managers.
public class StringLocalizer
- Inheritance
-
StringLocalizer
- Inherited Members
- Extension Methods
Constructors
StringLocalizer(params Type[])
Initializes a new instance of the StringLocalizer class with the specified types.
public StringLocalizer(params Type[] types)
Parameters
types
Type[]The types containing resources to be used for localization.
Properties
ExtendedTypeList
Gets a list of extended types that will be used for localization in addition to the primary types.
public static List<Type> ExtendedTypeList { get; }
Property Value
this[string]
Gets the localized string for the specified key.
public string this[string key] { get; }
Parameters
key
stringThe key to look up in the resource managers.
Property Value
- string
The localized string if found; otherwise, the key itself.