LocalizationService

A service which provides localization methods.

NameTypeDefaultDescription

language?

string

Constructors

LocalizationService

(language?: string)

Parameters

language?

string

Methods

toLanguageString

Provides a string based on a key for the current language. When no string for the current language is available under this key, the defaultValue is returned.

Parameters

key

string

The key which identifies the string for the current language.

defaultValue

string

The default value which will be returned when no string for the current language is available under the key.

Returns

string

  • The string for the current language.