Table of Contents

Class LocalizationSettings

Namespace
BlazOrbit.Localization
Assembly
BlazOrbit.Core.dll

Common localization settings shared by the Server and WASM hosting integrations. Concrete packages derive their host-specific subclass — ServerLocalizationSettings adds cookie configuration, WasmLocalizationSettings is a marker for symmetry — so that consumers referencing both packages can disambiguate without using aliases.

public class LocalizationSettings
Inheritance
object
LocalizationSettings
Derived

Constructors

LocalizationSettings()

public LocalizationSettings()

Properties

DefaultCulture

public string DefaultCulture { get; set; }

Property Value

string

ResourcesPath

public string ResourcesPath { get; set; }

Property Value

string

SupportedCultures

public List<CultureInfo> SupportedCultures { get; set; }

Property Value

List<CultureInfo>

TranslationsAssemblies

Maps source-assembly names to translations-assembly names. The configured IStringLocalizerFactory uses this map to reroute resource lookups from the assembly that defines a marker type to a separately versioned *.Translations assembly.

public Dictionary<string, string> TranslationsAssemblies { get; }

Property Value

Dictionary<string, string>

Remarks

Default entries cover BlazOrbit's own resources. Add an entry per consumer assembly that ships a sidecar *.Translations project — for example, settings.TranslationsAssemblies["MyApp"] = "MyApp.Translations";. Keys are case-sensitive simple assembly names (no version, no extension).