i18next-cli 1.47.4 → 1.47.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/extractor/core/translation-manager.js +1 -1
- package/dist/cjs/locize.js +3 -0
- package/dist/esm/cli.js +1 -1
- package/dist/esm/extractor/core/translation-manager.js +1 -1
- package/dist/esm/locize.js +3 -0
- package/package.json +1 -1
- package/types/locize.d.ts.map +1 -1
package/dist/cjs/cli.js
CHANGED
|
@@ -31,7 +31,7 @@ const program = new commander.Command();
|
|
|
31
31
|
program
|
|
32
32
|
.name('i18next-cli')
|
|
33
33
|
.description('A unified, high-performance i18next CLI.')
|
|
34
|
-
.version('1.47.
|
|
34
|
+
.version('1.47.6'); // This string is replaced with the actual version at build time by rollup
|
|
35
35
|
// new: global config override option
|
|
36
36
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
37
37
|
program
|
|
@@ -708,7 +708,7 @@ function buildNewTranslationsForNs(nsKeys, existingTranslations, config, locale,
|
|
|
708
708
|
if (separator && typeof separator === 'string') {
|
|
709
709
|
const conflictingPath = findNestingConflict(newTranslations, key, separator);
|
|
710
710
|
if (conflictingPath !== null) {
|
|
711
|
-
logger$1.error(`Nesting conflict: key "${key}" conflicts with existing key "${conflictingPath}". ` +
|
|
711
|
+
logger$1.error(`Error: Nesting conflict: key "${key}" conflicts with existing key "${conflictingPath}". ` +
|
|
712
712
|
`"${key}" will be skipped — fix the overlapping key paths in your source code to avoid missing translations at runtime.`);
|
|
713
713
|
continue;
|
|
714
714
|
}
|
package/dist/cjs/locize.js
CHANGED
|
@@ -202,6 +202,9 @@ function buildArgs(command, config, cliOptions) {
|
|
|
202
202
|
catch {
|
|
203
203
|
basePath = node_path.resolve(process.cwd(), '.');
|
|
204
204
|
}
|
|
205
|
+
if (command === 'migrate') {
|
|
206
|
+
commandArgs.push('--download', 'true');
|
|
207
|
+
}
|
|
205
208
|
commandArgs.push('--path', basePath);
|
|
206
209
|
return commandArgs;
|
|
207
210
|
}
|
package/dist/esm/cli.js
CHANGED
|
@@ -29,7 +29,7 @@ const program = new Command();
|
|
|
29
29
|
program
|
|
30
30
|
.name('i18next-cli')
|
|
31
31
|
.description('A unified, high-performance i18next CLI.')
|
|
32
|
-
.version('1.47.
|
|
32
|
+
.version('1.47.6'); // This string is replaced with the actual version at build time by rollup
|
|
33
33
|
// new: global config override option
|
|
34
34
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
35
35
|
program
|
|
@@ -706,7 +706,7 @@ function buildNewTranslationsForNs(nsKeys, existingTranslations, config, locale,
|
|
|
706
706
|
if (separator && typeof separator === 'string') {
|
|
707
707
|
const conflictingPath = findNestingConflict(newTranslations, key, separator);
|
|
708
708
|
if (conflictingPath !== null) {
|
|
709
|
-
logger.error(`Nesting conflict: key "${key}" conflicts with existing key "${conflictingPath}". ` +
|
|
709
|
+
logger.error(`Error: Nesting conflict: key "${key}" conflicts with existing key "${conflictingPath}". ` +
|
|
710
710
|
`"${key}" will be skipped — fix the overlapping key paths in your source code to avoid missing translations at runtime.`);
|
|
711
711
|
continue;
|
|
712
712
|
}
|
package/dist/esm/locize.js
CHANGED
|
@@ -200,6 +200,9 @@ function buildArgs(command, config, cliOptions) {
|
|
|
200
200
|
catch {
|
|
201
201
|
basePath = resolve(process.cwd(), '.');
|
|
202
202
|
}
|
|
203
|
+
if (command === 'migrate') {
|
|
204
|
+
commandArgs.push('--download', 'true');
|
|
205
|
+
}
|
|
203
206
|
commandArgs.push('--path', basePath);
|
|
204
207
|
return commandArgs;
|
|
205
208
|
}
|
package/package.json
CHANGED
package/types/locize.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locize.d.ts","sourceRoot":"","sources":["../src/locize.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"locize.d.ts","sourceRoot":"","sources":["../src/locize.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AA8RnD,eAAO,MAAM,aAAa,GAAI,QAAQ,oBAAoB,EAAE,aAAa,GAAG,kBAAiD,CAAA;AAC7H,eAAO,MAAM,iBAAiB,GAAI,QAAQ,oBAAoB,EAAE,aAAa,GAAG,kBAAqD,CAAA;AACrI,eAAO,MAAM,gBAAgB,GAAI,QAAQ,oBAAoB,EAAE,aAAa,GAAG,kBAAoD,CAAA"}
|