@progress/kendo-vue-intl
Version:
26 lines (25 loc) • 1.05 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
*-------------------------------------------------------------------------------------------
*/
import { IntlService as r } from "./Intl/IntlService.mjs";
import { LocalizationService as n } from "./Localization/LocalizationService.mjs";
function s(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("en");
}
function a(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();
}
export {
s as provideIntlService,
a as provideLocalizationService
};