import*as l from"./../../core/i18n/i18n.js";import{Directives as c,html as g,nothing as i}from"./../lit/lit.js";var{repeat:p}=c;function f(o,r,a){let n=o.getLocalizedStringSetFor(l.DevToolsLocale.DevToolsLocale.instance().locale).getMessageFormatterFor(r),e=document.createElement("span");for(let t of n.getAst())if(t.type===1){let s=a[t.value];s&&e.append(s)}else"value"in t&&e.append(String(t.value));return e}function u(o,r,a){let n=o.getLocalizedStringSetFor(l.DevToolsLocale.DevToolsLocale.instance().locale).getMessageFormatterFor(r);return g`<span>${p(n.getAst(),e=>e.type===1?a[e.value]??i:"value"in e?String(e.value):i)}</span>`}export{f as getFormatLocalizedString,u as getFormatLocalizedStringTemplate};
//# sourceMappingURL=i18n.js.map
