You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This however does not work, because angulars string interpolation is never invoked.
Is there a better solution to this, or should I stick with the pipe-approach?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to translate strings with angulars string interpolation?
Lets say I have this simple en.json:
and an js object referring to those translations:
I now want to use angulars string interpolation while also using translocos translation functionality:
While this works fine, I wondered if this is considered the best solution, since the recommended approach would make use of the structural directive:
This however does not work, because angulars string interpolation is never invoked.
Is there a better solution to this, or should I stick with the pipe-approach?
Beta Was this translation helpful? Give feedback.
All reactions