i am trying to translate an application, where jointjs is used to create elements.
If the custom element template contains ex: {{ 'EXAMPLE' | translate }}
then it is displayed as {{ 'EXAMPLE' | translate }}
and is not translated.
Is there any solution to generate component before the ngx-translate is done?
Thank you
EDIT
having TS class ElementBuilder
which builds with the jointjs the elemet
having TS class with HTML template ExampleElement
which inherits from ElementBuilder
in the template of ExampleElement is used the: {{ 'EXAMPLE' | translate }}
which is not translated.
Try 1:
Added to constructors the TranslateService
, and when calling the ExampleElement
the translateService is passed. Nothing changes, it is not translated