Sourced from i18next-cli's changelog.
1.85.1
- fix(extractor): names imported through a barrel's
indexfile (1.85.0, #327) also resolve on Windows, where the import path kept its backslashes and never matched theindexfile.1.85.0
- fix(extractor): a type, enum or constant imported through a barrel file (
export * from './abc',export { ABC } from './abc',import { ABC } from './abc'; export { ABC }, also through a namespace importimport * as Types from './types') resolves to the declaration the barrel re-exports, instead of to whichever scanned file declared that name last.- fix(extractor): a name a file declares itself (a type, interface, enum or function, like variables since #307), or imports from a scanned file that declares it, no longer resolves to another file's same-named declaration, also when the extractor cannot read its values (
interface Props { size: string }).- fix(extractor):
useTranslation(NS)and{ ns: NS }readNSfrom the file it is imported from. A file whose ownNSthe extractor cannot read (const NS = getNs()) no longer takes another file'sNS, so its keys go to the default namespace.- feat(extractor): new
extract.warnOnAmbiguousTypes(true/'warn'/'error', defaultfalse): warns, or aborts extraction, when the extractor has to guess which of several differently declared same-named types, enums or constants a file means. Fixes #3271.84.0
- feat: plugins'
afterSyncgets a third argument{ isDryRun }, true forextract --dry-runandrunExtractor(config, { isDryRun: true }), so a plugin that writes files can skip that on a dry run. Fixes #3261.83.0
- feat:
extract.ignoreNamespacesaccepts glob patterns likestatus.ignoreKeysdoes, so['dev.*', 'test.*']ignores everydev.andtest.namespace inextract,status,syncandlint.*matches any characters. Fixes #3251.82.5
- fix: with an
extract.outputthat puts the namespace in a folder, likelocales/{{namespace}}/{{language}}.json,lint,sync,extractandrename-keynow read the namespace from where the template has it instead of from the file name, which there is the language.lintchecked no ICU/MF2 message at all,syncwrote the secondary languages tolocales/en/de.jsoninstead oflocales/common/de.json, andrename-keymissed calls liket('hello', { ns: 'common' }).syncandlintalso read a namespace with a dot, likeapp.settings.json, whole. Fixes #324.
a6d0cc9
1.85.150269e7
docs: changelog for 1.85.198340c7
fix: resolve barrel index imports on Windows9c9be9b
1.85.0f7b9828
docs: changelog for 1.85.051f33c2
fix: resolve names imported through barrel files, add
warnOnAmbiguousTypesf76590f
1.84.0eb03151
docs: changelog for 1.84.06ea4c95
feat: afterSync tells plugins whether it is a dry runb3bfeaf
1.83.0