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

Skip to main content Skip to navigation

TranslationOptions Pennington.Localization

In-memory store for UI string translations, keyed by locale and string key. Configured in Translations and consumed by PenningtonStringLocalizer.

Methods

Add

#
public void Add(string locale, string key, string value);

Add a single translation entry.

Parameters

locale string
key string
value string

Add

#
public void Add(string locale, Dictionary<string, string> entries);

Add multiple translation entries for a locale.

Parameters

locale string
entries Dictionary<string, string>

Pennington.Localization.TranslationOptions

namespace Pennington.Localization;

/// In-memory store for UI string translations, keyed by locale and string key. Configured in Translations and consumed by PenningtonStringLocalizer.
public class TranslationOptions
{
    /// Add a single translation entry.
    
public void Add(string locale, string key, string value);
/// Add multiple translation entries for a locale.
public void Add(string locale, Dictionary<string, string> entries);
}