Class TrinityLocalizer
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
stringThe 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
stringThe 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.