Angular component for rendering translations with markup as an extension for Transloco (v21, Angular 21+, Transloco 8). Fork of ngx-transloco-markup, providing a <transloco> component that supports inline HTML-like markup in translation strings without innerHTML or splitting translations. Ships TypeScript types, published in Angular Package Format. Release cadence aligns with Angular major versions. Key differentiators: extensible transpiler architecture, automatic context detection, no XSS risk compared to [innerHTML].
npm install dfx-transloco-markupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of the <transloco> component with a translation key and parameter interpolation, including markup like <b>.
Upgrade to Angular 21 and Transloco 8. Use dfx-transloco-markup 21.x.
Ensure @jsverse/transloco version matches ^8.0.0.
Use @jsverse/transloco 8.x and dfx-transloco-markup 21.x.
Add custom transpiler classes to the providers array.
Ensure tags are properly closed and nested.
Either import TranslocoMarkupModule in your standalone component's imports, or add it to your NgModule imports.
Add TranslocoRootModule or provideTransloco in your app configuration.
Make sure the translation key exists and params is an object if used.