Pass translation string from Object #600
Unanswered
ningelschlingel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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