How to escape curly braces in Angular's $localize function?

930 Views Asked by At

If i try to translate the following text:

{example}

like this:

$localize`{example}`

The text will disappear in the translated build.

Is there a way to escape the curly braces?

1

There are 1 best solutions below

3
On BEST ANSWER

Try writing:

       $localize`${'{'}example}`