-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Add a ph function which allows specifying a human-readable name and example to placeholders to help translators.
import {ph} from '@lit/localize/ph.js';
msg(
html`Hello ${ph(this.user.fullName, {
name: "FULL_USER_NAME",
example: "Jane Doe",
})}`
);XLIFF doesn't appear to have an element explicitly for examples, so we could encode it as:
<x id="FULL_USER_NAME (e.g. Jane Doe)"/>In XLB I think we can encode this as:
<ph name="FULL_USER_NAME"><ex>Jane Doe</ex></ph>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
📋 Triaged