New to KendoReactStart a free 30-day trial

LocalizationService

A service which provides localization methods.

NameTypeDefaultDescription

language?

string

The language code used for localization. When no string is available for this language, the default value is returned.

Constructors

LocalizationService

(language?: string)

Creates a new LocalizationService instance.

Parameters

language?

string

The language code for localization.

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.
In this article
ConstructorsLocalizationServiceMethods
Not finding the help you need?
Contact Support