Skip to content

v4.0.0

Compare
Choose a tag to compare
@cheton cheton released this 08 Jul 12:59
9e91b0c

What's Changed

  • feat: migrate from Tap to Jest by @cheton in #220

  • feat: rework the nodesToString function to output expected element index or tag name by @cheton in #234

    Adds supportBasicHtmlNodes and keepBasicHtmlNodesFor options to the trans object that supports for simple html elements. Learn more

    trans: {
      supportBasicHtmlNodes: true, // Enables keeping the name of simple nodes (e.g. <br/>) in translations instead of indexed keys.
      keepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'], // Which nodes are allowed to be kept in translations during defaultValue generation of <Trans>.
    }

Full Changelog: v3.3.0...v4.0.0