v4.0.0
What's Changed
-
feat: rework the
nodesToString
function to output expected element index or tag name by @cheton in #234Adds
supportBasicHtmlNodes
andkeepBasicHtmlNodesFor
options to thetrans
object that supports for simple html elements. Learn moretrans: { 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