KbqDynamicTranslation — component for embedding custom components into translatable strings.
Components are embedded into strings using special syntax: [[<slotName>:<context>]], where slotName is the key of the registered component, and context is the data passed to the component.
<!-- Slot with string passing -->
<kbq-dynamic-translation text="[[myLinkSlot:Open link]]">
<a *kbqDynamicTranslationSlot="'myLinkSlot'; let context">{{ context }}</a>
</kbq-dynamic-translation>
<!-- Slot with list passing -->
<kbq-dynamic-translation text="[[myListSlot:(first,second,third)]]">
<ul *kbqDynamicTranslationSlot="'myListSlot'; let context">
@for (item of context; track $index) {
<li>{{ item }}</li>
}
</ul>
</kbq-dynamic-translation>