--- title: LocalizationService description: "Learn how to build custom functionality when working with the React Internationalization by Kendo UI with the help of the LocalizationService." api_reference: true type: inner_api slug: api_intl_localizationservice --- # LocalizationService A service which provides localization methods.
Name Type Default Description
#### 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.