Skip to content

<Localized> around a text node should process markup in the translation #339

@stasm

Description

@stasm

#230 made it possible to use <Localized> around text nodes rather than elements.

// BEFORE
<Localized id="...">
    <span>Hello</span>
</Localized>

// AFTER
<Localized id="...">
    Hello
</Localized>

Currently, if the wrapped node is a string, Localized always returns the translation as a simple string, too.
As a consequence, the text-only form doesn't support any markup in translations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions