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