Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/utils/lang.es",["module","exports","require"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalizedValue=function(e,t){const n=themeDisplay.getLanguageId();if(t[n])return t[n];return t[e]},t.sub=r,t.subComp=function(t,n){return e(t,n)},t.getPluralMessage=function(e,t,n=0,i,o){return r(n>1?t:e,o||[n.toLocaleString()])};const e=(e,t)=>{const n=e.split(/({\d+})/g).filter((e=>0!==e.length));for(let e=0;e<t.length;e++){const r=t[e],i="{".concat(e,"}");let o=n.indexOf(i);for(;o>=0;)n.splice(o,1,r),o=n.indexOf(i)}return n};function r(t,n){return e(t,n).join("")}}}));
//# sourceMappingURL=lang.es.js.map