-
Notifications
You must be signed in to change notification settings - Fork 173
Closed
Description
💡 Upvote and subscribe to this issue to increase prioritization.
Problem
Users can not use markup placeholders.
See this long thread https://github.com/opral/monorepo/discussions/1959#discussioncomment-8004920
And this one from https://discord.com/channels/897438559458430986/1110687789395226716/1110903944143712338:
Proposal
Add markup placeholders.
From the message format working group https://github.com/unicode-org/message-format-wg/blob/main/spec/syntax.md#markup-elements
Originally posted by @samuelstroschein in https://github.com/opral/monorepo/discussions/913
Reactions are currently unavailable
Pinned by samuelstroschein
Pinned comment options
Okay then updated voting.
Please vote for API 1 (❤️) or API 2 (🚀)
**API 1 ❤️ **
<ParaglideMessage
value={m.nested_cta}
inputs={{}}
markup={{
link: ({ children, options }) => <a href={options.to}>{children}</a>,
strong: ({ children }) => <strong>{children}</strong>,
}}
/>**API 2 🚀 **
<Trans
message={m.nested_cta}
inputs={{}}
markup={{
link: ({ children, options }) => <a href={options.to}>{children}</a>,
strong: ({ children }) => <strong>{children}</strong>,
}}
/>Metadata
Metadata
Assignees
Labels
No labels