C# Class Localization.SqlLocalizer.DbStringLocalizer.SqlStringLocalizer

Inheritance: IStringLocalizer
Show file Open project: damienbod/AspNet5Localization Class Usage Examples

Public Methods

Method Description
GetAllStrings ( bool includeParentCultures ) : IEnumerable
SqlStringLocalizer ( string>.Dictionary localizations, string resourceKey, bool returnKeyOnlyIfNotFound ) : System
WithCulture ( CultureInfo culture ) : IStringLocalizer
this ( string name ) : LocalizedString

Private Methods

Method Description
GetText ( string key ) : string

Method Details

GetAllStrings() public method

public GetAllStrings ( bool includeParentCultures ) : IEnumerable
includeParentCultures bool
return IEnumerable

SqlStringLocalizer() public method

public SqlStringLocalizer ( string>.Dictionary localizations, string resourceKey, bool returnKeyOnlyIfNotFound ) : System
localizations string>.Dictionary
resourceKey string
returnKeyOnlyIfNotFound bool
return System

WithCulture() public method

public WithCulture ( CultureInfo culture ) : IStringLocalizer
culture System.Globalization.CultureInfo
return IStringLocalizer

this() public method

public this ( string name ) : LocalizedString
name string
return Microsoft.Extensions.Localization.LocalizedString