This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

PenningtonStringLocalizerFactory Pennington.Localization

An IStringLocalizerFactory that returns PenningtonStringLocalizer instances backed by TranslationOptions. All localizer instances share the same translation dictionary — the type/location parameters are ignored.

Constructors

.ctor

#
public PenningtonStringLocalizerFactory(TranslationOptions translations, LocalizationOptions localization);

Creates the factory with the shared localizer instance.

Parameters

translations TranslationOptions
localization LocalizationOptions

Methods

Create

#
public IStringLocalizer Create(Type resourceSource);

Returns the shared localizer; resourceSource is ignored.

Parameters

resourceSource Type

Returns

IStringLocalizer

Create

#
public IStringLocalizer Create(string baseName, string location);

Returns the shared localizer; baseName and location are ignored.

Parameters

baseName string
location string

Returns

IStringLocalizer

Pennington.Localization.PenningtonStringLocalizerFactory

namespace Pennington.Localization;

/// An IStringLocalizerFactory that returns PenningtonStringLocalizer instances backed by TranslationOptions. All localizer instances share the same translation dictionary — the type/location parameters are ignored.
public class PenningtonStringLocalizerFactory
{
    /// Creates the factory with the shared localizer instance.
    
public PenningtonStringLocalizerFactory(TranslationOptions translations, LocalizationOptions localization);
/// Returns the shared localizer; resourceSource is ignored.
public IStringLocalizer Create(Type resourceSource);
/// Returns the shared localizer; baseName and location are ignored.
public IStringLocalizer Create(string baseName, string location);
}