@progress/kendo-vue-intl
Version:
9 lines (8 loc) • 947 B
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 s=require("./messages.js");class a{constructor(e){if(this.language=e,e===""&&process.env.NODE_ENV!=="production")throw"Language should not be an empty string"}toLanguageString(e,t){return this.language&&s.messages[this.language]&&s.messages[this.language].hasOwnProperty(e)?s.messages[this.language][e]:Object.keys(this)[0]&&s.messages[Object.values(this)[0]]&&s.messages[Object.values(this)[0]].hasOwnProperty(e)?s.messages[Object.values(this)[0]][e]:t}}exports.LocalizationService=a;