How to display default text when translation is missing using jhiTranslate

Viewed 279

in JHipster application I want to display a default text within a html element when a translation is missing.

I use angular ngFor directive to display elements in an array, some of which have a translation and some of which are inserted by a user, and therefore have no translation in i18n json. I couldn't find any documentation that explained how to use jhiTranslate

I was thinking about syntax like this

<div jhiTranslate="example.1">Default Text</div>

and if this particular translation was missing a "Default Text" would be shown. for now it shows "translation-not-found[example.1]".

Is there a way to achieve this using jhiTranslate?

0 Answers
Related