lingo.dev 0.74.8 → 0.74.9
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/build/cli.cjs +8 -7
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +8 -7
- package/build/cli.mjs.map +1 -1
- package/package.json +1 -1
package/build/cli.cjs
CHANGED
|
@@ -2279,7 +2279,7 @@ ${currentIndent}}`;
|
|
|
2279
2279
|
const bIsWhitespace = /^\s*$/.test(b);
|
|
2280
2280
|
if (aIsWhitespace && !bIsWhitespace) return -1;
|
|
2281
2281
|
if (!aIsWhitespace && bIsWhitespace) return 1;
|
|
2282
|
-
return a.localeCompare(b, void 0, { numeric:
|
|
2282
|
+
return a.localeCompare(b, void 0, { numeric: true });
|
|
2283
2283
|
});
|
|
2284
2284
|
const items = sortedKeys.map((key) => {
|
|
2285
2285
|
const value = data[key];
|
|
@@ -2667,7 +2667,8 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
|
|
|
2667
2667
|
for (const bucket of buckets) {
|
|
2668
2668
|
cacheOra.info(`Processing bucket: ${bucket.type}`);
|
|
2669
2669
|
for (const bucketConfig of bucket.config) {
|
|
2670
|
-
const bucketOra =
|
|
2670
|
+
const bucketOra = _ora2.default.call(void 0, { indent: 4 });
|
|
2671
|
+
bucketOra.info(`Processing path: ${bucketConfig.pathPattern}`);
|
|
2671
2672
|
const sourceLocale = __spec.resolveOverridenLocale.call(void 0, i18nConfig.locale.source, bucketConfig.delimiter);
|
|
2672
2673
|
const bucketLoader = createBucketLoader(bucket.type, bucketConfig.pathPattern);
|
|
2673
2674
|
bucketLoader.setDefaultLocale(sourceLocale);
|
|
@@ -2771,12 +2772,12 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
|
|
|
2771
2772
|
cacheChunk(targetLocale, sourceChunk, processedChunk);
|
|
2772
2773
|
const progressLog = `[${sourceLocale} -> ${targetLocale}] [${Object.keys(processableData).length} entries] (${progress}%) AI localization in progress...`;
|
|
2773
2774
|
if (flags.verbose) {
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
`Caching chunk ${JSON.stringify(sourceChunk, null, 2)} -> ${JSON.stringify(processedChunk, null, 2)}`
|
|
2775
|
+
bucketOra.info(progressLog);
|
|
2776
|
+
bucketOra.info(
|
|
2777
|
+
`(${progress}%) Caching chunk ${JSON.stringify(sourceChunk, null, 2)} -> ${JSON.stringify(processedChunk, null, 2)}`
|
|
2777
2778
|
);
|
|
2778
2779
|
} else {
|
|
2779
|
-
|
|
2780
|
+
bucketOra.text = progressLog;
|
|
2780
2781
|
}
|
|
2781
2782
|
}
|
|
2782
2783
|
);
|
|
@@ -3157,7 +3158,7 @@ function displaySummary(results) {
|
|
|
3157
3158
|
// package.json
|
|
3158
3159
|
var package_default = {
|
|
3159
3160
|
name: "lingo.dev",
|
|
3160
|
-
version: "0.74.
|
|
3161
|
+
version: "0.74.9",
|
|
3161
3162
|
description: "Lingo.dev CLI",
|
|
3162
3163
|
private: false,
|
|
3163
3164
|
publishConfig: {
|