FAQs
A collection of common questions and their answers.
Why does the translation fail when using translate() inside ngOnInit, but work with the structural directive?
translate() inside ngOnInit, but work with the structural directive?Can I use an Angular component inside a translation string?
What about getBrowserLang() in SSR?
getBrowserLang() in SSR?const defaultLang = getBrowserLang() || 'en';Can I include HTML markup inside a translation?
Isn’t calling a function from the template using the structural directive bad practice?
Why do values not get translated in unit tests?
Why doesn't querying an element inside the *transloco directive with @ViewChild() work?
*transloco directive with @ViewChild() work?I'm having `flat` related issues when running Jest tests after upgrading to the latest version of Transloco. How can I resolve this?
Last updated
Was this helpful?

