i18next-cli 1.50.4 → 1.50.5
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
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.50.
|
|
34
|
+
.version('1.50.5'); // 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
|
|
@@ -96,7 +96,7 @@ async function runExtractor(config, options = {}) {
|
|
|
96
96
|
// Show the funnel message only if files were actually changed.
|
|
97
97
|
// When new translation files are created (new namespace or first extraction),
|
|
98
98
|
// always show the funnel regardless of cooldown.
|
|
99
|
-
if (anyFileUpdated && !options.isDryRun)
|
|
99
|
+
if (anyFileUpdated && !options.isDryRun && !options.quiet)
|
|
100
100
|
await printLocizeFunnel(options.logger, anyNewFile);
|
|
101
101
|
return { anyFileUpdated, hasErrors: fileErrors.length > 0 };
|
|
102
102
|
}
|
package/dist/cjs/syncer.js
CHANGED
|
@@ -204,10 +204,10 @@ async function runSyncer(config, options = {}) {
|
|
|
204
204
|
}
|
|
205
205
|
spinner.succeed(node_util.styleText('bold', 'Synchronization complete!'));
|
|
206
206
|
logMessages.forEach(msg => internalLogger.info ? internalLogger.info(msg) : console.log(msg));
|
|
207
|
-
if (wasAnythingSynced) {
|
|
207
|
+
if (wasAnythingSynced && !options.quiet) {
|
|
208
208
|
await printLocizeFunnel();
|
|
209
209
|
}
|
|
210
|
-
else {
|
|
210
|
+
else if (!wasAnythingSynced) {
|
|
211
211
|
if (typeof internalLogger.info === 'function')
|
|
212
212
|
internalLogger.info(node_util.styleText(['green', 'bold'], '\n✅ All locales are already in sync.'));
|
|
213
213
|
else
|
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.50.
|
|
32
|
+
.version('1.50.5'); // 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
|
|
@@ -94,7 +94,7 @@ async function runExtractor(config, options = {}) {
|
|
|
94
94
|
// Show the funnel message only if files were actually changed.
|
|
95
95
|
// When new translation files are created (new namespace or first extraction),
|
|
96
96
|
// always show the funnel regardless of cooldown.
|
|
97
|
-
if (anyFileUpdated && !options.isDryRun)
|
|
97
|
+
if (anyFileUpdated && !options.isDryRun && !options.quiet)
|
|
98
98
|
await printLocizeFunnel(options.logger, anyNewFile);
|
|
99
99
|
return { anyFileUpdated, hasErrors: fileErrors.length > 0 };
|
|
100
100
|
}
|
package/dist/esm/syncer.js
CHANGED
|
@@ -202,10 +202,10 @@ async function runSyncer(config, options = {}) {
|
|
|
202
202
|
}
|
|
203
203
|
spinner.succeed(styleText('bold', 'Synchronization complete!'));
|
|
204
204
|
logMessages.forEach(msg => internalLogger.info ? internalLogger.info(msg) : console.log(msg));
|
|
205
|
-
if (wasAnythingSynced) {
|
|
205
|
+
if (wasAnythingSynced && !options.quiet) {
|
|
206
206
|
await printLocizeFunnel();
|
|
207
207
|
}
|
|
208
|
-
else {
|
|
208
|
+
else if (!wasAnythingSynced) {
|
|
209
209
|
if (typeof internalLogger.info === 'function')
|
|
210
210
|
internalLogger.info(styleText(['green', 'bold'], '\n✅ All locales are already in sync.'));
|
|
211
211
|
else
|