Table of Contents

Class TrinityLocalizer

Namespace
AbanoubNassem.Trinity.Providers
Assembly
AbanoubNassem.Trinity.dll

Provides localization functionality using JSON files as sources.

public class TrinityLocalizer
Inheritance
TrinityLocalizer
Inherited Members

Constructors

TrinityLocalizer(TrinityConfigurations)

Provides localization functionality using JSON files as sources.

public TrinityLocalizer(TrinityConfigurations configurations)

Parameters

configurations TrinityConfigurations

Properties

this[string, object[]]

Gets a localized string using its name and arguments.

public LocalizedString this[string name, params object[] arguments] { get; }

Parameters

name string

The name of the localized string.

arguments object[]

An array of objects to format the localized string.

Property Value

LocalizedString

The localized string.

this[string]

Gets a localized string using its name.

public LocalizedString this[string name] { get; }

Parameters

name string

The name of the localized string.

Property Value

LocalizedString

The localized string.

Methods

GetAllStrings(string?)

Retrieves all localized strings.

public IEnumerable<LocalizedString> GetAllStrings(string? forceLocale = null)

Parameters

forceLocale string

Returns

IEnumerable<LocalizedString>

A collection of localized strings.