Releases: i18next/i18next-scanner
Releases · i18next/i18next-scanner
v3.2.0
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
- 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
- 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
Features
- Update minimum required Node.js version to 10
- Update Acorn to 8.0 to support new syntax features
v2.11.0
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
Fix broken tests and upgrade several dependencies (b19aa7b, PR #163)
v2.10.2
Fixed an issue that cannot parse dynamic imports (eac86df, #147)
v2.10.0
- 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
- Fix whitespace parsing issue (closes #131)
- Fix an issue that cannot set
trans: false
to disable parseTransFromString
(1bf929f, PR #134 by @tkforce, closes #133)