@progress/kendo-react-intl
Version:
React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package
35 lines (34 loc) • 2.35 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { IntlService } from './Intl/IntlService.js';
import { LocalizationService } from './Localization/LocalizationService.js';
import * as React from 'react';
/**
* Provides an internationalization service. When the passed component is a direct or indirect child of `IntlProvider`, the returned service uses the locale of the provider. Otherwise, uses `en` as a default locale. To handle locale changes, call the method on each `render`.
*
* @param componentClass - The React component class that will use the internationalization service.
*/
export declare function provideIntlService(component: React.Component): IntlService;
/**
* Provides a localization service. When the passed component is a direct or indirect child of `LocalizationProvider`, the returned service uses the language of the provider. To handle locale changes, call the method on each `render`.
*
* @param componentClass - The React component class that will use the internationalization service.
*/
export declare function provideLocalizationService(component: React.Component): LocalizationService;
/**
* A method which registers a component class or a functional stateless component for internationalization. When a component of that type is a direct or indirect child of `IntlProvider`, the locale of the provider is used. Otherwise, uses `en` as a default locale.
*
* @param component - The React component class that will use the internationalization methods.
*/
export declare function registerForIntl(component: React.ComponentClass<any, any>): void;
/**
* A method which registers a component class or a stateless functional component for localization. When a component of that type is a direct or indirect child of `LocalizationProvider`, the language of the provider is used.
*
* @param component - The React component class that will use the internationalization methods.
*/
export declare function registerForLocalization(component: React.ComponentClass<any, any>): void;