Skip to content

Releases: i18next/i18next-scanner

v4.4.0

25 Aug 18:41
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.3.0...v4.4.0

v4.3.0

11 Jul 07:19
Compare
Choose a tag to compare

What's Changed

  • refactor: remove the traverse code in parseJSXElement to eliminate redundant calls for setting translation keys by @cheton in #250
  • chore: bump vinyl and vinyl-fs to the latest release to fix vulnerability issue by @cheton in d54293b
  • refactor: call the defaultValue helper to determine the value of a translation key when parsing Trans components by @cheton in bcfd2cd

Full Changelog: v4.2.0...v4.3.0

v4.2.0

19 Mar 05:40
Compare
Choose a tag to compare

What's Changed

  • feat: add possibility to pass RegExp to trans.component by @kirillku in #244

Full Changelog: v4.1.3...v4.2.0

v4.1.3

19 Mar 05:37
Compare
Choose a tag to compare

What's Changed

  • fix: do not show log message when defaultValue returns undefined by @kirillku in #246

New Contributors

Full Changelog: v4.1.2...v4.1.3

v4.1.2

17 Jan 16:47
Compare
Choose a tag to compare

What's Changed

  • fix: fix array duplication after parse by @Zwooosh in #238

New Contributors

Full Changelog: v4.1.1...v4.1.2

v4.1.1

17 Jan 16:44
Compare
Choose a tag to compare

What's Changed

  • refactor: improve JSX parser to parse boolean props by @geewoo94 in #241

New Contributors

Full Changelog: v4.1.0...v4.1.1

v4.1.0

14 Oct 14:37
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.0.0...v4.1.0

v4.0.0

08 Jul 12:59
9e91b0c
Compare
Choose a tag to compare

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

v3.3.0

17 Jun 14:18
Compare
Choose a tag to compare

What's Changed

  • feat: add allowDynamicKeys option that allows inferring dynamic keys within the custom handler by @delphiactual in #233

New Contributors

Full Changelog: v3.2.0...v3.3.0

v3.2.0

16 Jun 12:56
Compare
Choose a tag to compare

What's Changed

  • chore: use let instead of const to fix type error by @sitek94 in #225
  • feat: add metadata attribute for passing context information about the translation key/string by @mmohajer in #230

New Contributors

Full Changelog: v3.1.0...v3.2.0