Sourced from i18next-cli's changelog.
1.74.2
- fix(extract): the output no longer depends on the order in which
globhappens to return the input files. When two call sites give one key different defaults (t('k', 'Adding...')in one file,t('k', 'Importing...')in another), the first file visited wins, so an unchanged source tree could produce a different catalog from run to run and flip CI checks that compare against a committed catalog. Files are now visited in sorted path order, which makes the winner stable. If your sources contain such conflicts, the kept default may change once with this release. To hear about them instead of silently keeping one default, setextract.warnOnConflictsto'warn'or'error'. Fixes #296.- perf(extract): files that contain no translation call, hook,
TFunction,getFixedTor Trans component (as configured viafunctions,useTranslationNamesandtransComponents) are no longer parsed and walked a second time for keys. The constants pre-scan still reads every file, so types andas constvalues declared in such files keep resolving dynamic keys elsewhere. Plugins with anonVisitNodehook still see every file. On large trees where most files hold no translations this cuts extraction time considerably. Fixes #297.- chore: update dependencies
d0b07c9
1.74.28ce283e
fix(extract): sort input files and skip the key walk for token-free
files #29...