All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.util.formatMessage.js Maven / Gradle / Ivy

"use strict";const g=/('')|'([^']+(?:''[^']*)*)(?:'|$)|\{([0-9]+(?:\s*,[^{}]*)?)\}|[{}]/g,i=(n,t)=>(t=t||[],n.replace(g,(p,s,e,r,o)=>{if(s)return"'";if(e)return e.replace(/''/g,"'");if(r){const a=typeof r=="string"?parseInt(r):r;return String(t[a])}throw new Error(`[i18n]: pattern syntax error at pos ${o}`)}));export default i;
//# sourceMappingURL=formatMessage.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy