Skip to content

Releases: i18next/i18next-scanner

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

v3.1.0

15 Oct 14:49
Compare
Choose a tag to compare
  • feat: use esprima-next that contains the latest release of ESM support (#221, closes #205)
  • chore: deprecate Travis CI in favor of GitHub workflows

v3.0.1

12 Oct 08:31
Compare
Choose a tag to compare
  • fix: fix false ns type error (#183)
  • feat: print the literal code nodes-to-string is choking on (#185)
  • feat: allow loadPath and savePath on resource configuration to be functions (#200)
  • fix: enforce i18next JSON v3 to maintain backward compatibility (#217)
  • ci: setup github workflows (#218)

v3.0.0

10 Nov 06:14
Compare
Choose a tag to compare

Features

  • Update minimum required Node.js version to 10
  • Update Acorn to 8.0 to support new syntax features

v2.11.0

16 Mar 02:57
Compare
Choose a tag to compare

Features

  • Trans component does not respect the defaultValue (PR #165, closes #104)
  • Add support for dynamic context (PR #180)

Bug Fixes

  • Correct link to key based fallback description (PR #160)
  • Fix build failure when transpiling testing code with Babel (PR #182)

v2.10.3

23 Sep 14:56
b19aa7b
Compare
Choose a tag to compare

Fix broken tests and upgrade several dependencies (b19aa7b, PR #163)

v2.10.2

23 May 11:35
eac86df
Compare
Choose a tag to compare

Fixed an issue that cannot parse dynamic imports (eac86df, #147)

v2.10.1

16 Mar 16:42
Compare
Choose a tag to compare

Extract namespace from Trans component (9c94093, #137, PR #139)

v2.10.0

06 Mar 09:47
Compare
Choose a tag to compare
  • Allows passing config options for specifying input/output folder rather than using command-line parameters (775067f)
    module.exports = {
      input: [
        'app/**/*.{js,jsx}',
        // Use ! to filter out files or directories
        '!app/**/*.spec.{js,jsx}',
        '!app/i18n/**',
        '!**/node_modules/**',
      ],
      output: './',
      options: { },
      transform: { },
    };
  • Allows passing acorn options provided by acorn parser
    trans: {
      acorn: {
        emcaVersion: 10, // defaults to 10
        sourceType: 'module', // defaults to 'module'
        // Check out https://github.com/acornjs/acorn/tree/master/acorn#interface for additional options
      }
    }
  • deps: acorn@^6.1.1
  • deps: acorn-stage3@^2.0.0
  • deps: i18next@*

v2.9.2

27 Feb 19:32
Compare
Choose a tag to compare