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
Hi @Startouf,
I'm not sure if its doable in those examples due to the fact that your whole code has to be compiled, run through and interpreted in the correct way with various cases.
We were in the same situation as you and what we did was that we created a translate pipe with the markers within.
As an example:
A "downside" of this approach is that you have changes in two files, if you add one enum value.
On the other hand you got the advantage that you can cluster your enum values in your translation files with prefixes (as shown in the example) and you got your business logic and translate logic separated.
Hope that helps or might be an idea.
Greetings Daniel
Linked to #188
Using his same example
It would be great to be able to translate all enum values under a namespace. Something like
The text was updated successfully, but these errors were encountered: