@progress/kendo-vue-intl
Version:
9 lines (8 loc) • 1.03 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
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./Intl/IntlService.js"),n=require("./Localization/LocalizationService.js");function t(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.kendoIntlService;return i&&Object.keys(i).some(o=>o==="locale")?i:new r.IntlService("en")}function c(e){if(!e&&process.env.NODE_ENV!=="production")throw`Passed component - ${e} is invalid.`;const i=e.kendoLocalizationService;return i&&Object.keys(i).some(o=>o==="language")?i:new n.LocalizationService}exports.provideIntlService=t;exports.provideLocalizationService=c;