Skip to content

v0.2.0

Choose a tag to compare

@hcuadra811 hcuadra811 released this 12 Jun 02:44
· 36 commits to main since this release

Added

  • <Phrase> — React component wrapping the base SDK's vanilla Phrase rich-text handler. Keeps a markup-bearing run as ONE translatable phrase (so a count variable stays next to the noun it pluralizes), encoding inline markup as neutral tokens and reconstituting the real framework-owned elements at render. Props: category?, params?, tag? (default span), className?, children. Brings the React SDK to parity with langsys-js-svelte.
  • <DontTranslate> — marks a region as never-translated (renders translate="no" + data-ls-dont-translate), preserved verbatim. Props: tag? (default span), className?, children.