@progress/kendo-react-intl
Version:
React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package
10 lines (9 loc) • 1.19 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
"use client";
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Intl/IntlService.js"),n=require("./Localization/LocalizationService.js"),t=require("./globalization/GlobalizationContext.js");function r(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.intl?i.intl:new o.IntlService("en")}function c(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.context;return i&&i.localization?i.localization:new n.LocalizationService}function l(e){e.contextType=t.GlobalizationContext}function a(e){e.contextType=t.GlobalizationContext}exports.provideIntlService=r;exports.provideLocalizationService=c;exports.registerForIntl=l;exports.registerForLocalization=a;