Hi Carolyn,
Am 04.01.24 um 15:49 schrieb Carolyn Sullivan:
[…]
> (1)How do I escape quotation marks? I kept getting syntax errors when I
> tried putting this line in the en.json5 file:
> "submitinfo.step1.pt2": "Submit your thesis for your Thesis Supervisor's
> and Academic Unit's approval by using the service request "Approval of
> the final version of the thesis"",
> Also tried:
> "submitinfo.step1.pt2": "Submit your thesis for your Thesis Supervisor's
> and Academic Unit's approval by using the service request \"Approval of
> the final version of the thesis\"",
> (2)Is there a way to insert html tags into labels so that they're
> interpolated as html and not as plaintext when they go through {{label |
> translate}} ? Example--
it is possible, but some work. Due to security reasons Angular does not
render this in this way.
Principally spoken it works like this:
from
<h2>{{'submitinfo.step1.pt2' | translate}}</h2>
to
<h2 [innerHTML]="'submitinfo.step1.pt2' | translate"></h2>
This means changing the source code…
>
> Or is it simply that ALL the plaintext between the html tags is going to
> need a translation label? Just wanted to ask before creating a thousand
> labels!
Same procedure like above; with [innerHTML] you can use " e.g.
Hope it helps
Michael