js: Fix type issue with FormatJS rich text elements.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-03 12:14:03 -07:00
committed by Tim Abbott
parent b582d5886c
commit 3a718d786f
10 changed files with 54 additions and 22 deletions

View File

@@ -247,7 +247,7 @@ locally to the translation:
```js
$t_html(
{defaultMessage: "<b>HTML</b> linking to the <z-link>login page</z-link>"},
{"z-link": (content_html) => `<a href="/login/">${content_html}</a>`},
{"z-link": (content_html) => `<a href="/login/">${content_html.join("")}</a>`},
)
```