@lang-tag/cli 0.13.0 → 0.13.1
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/config.d.ts +2 -0
- package/index.cjs +3 -1
- package/index.js +3 -1
- package/package.json +1 -1
package/config.d.ts
CHANGED
|
@@ -223,6 +223,8 @@ export interface LangTagCLIConflictResolutionEvent {
|
|
|
223
223
|
exit(): void;
|
|
224
224
|
}
|
|
225
225
|
export interface LangTagCLICollectFinishEvent {
|
|
226
|
+
totalTags: number;
|
|
227
|
+
namespaces: Record<string, Record<string, any>>;
|
|
226
228
|
conflicts: LangTagCLIConflict[];
|
|
227
229
|
logger: LangTagCLILogger;
|
|
228
230
|
/** Breaks translation collection process */
|
package/index.cjs
CHANGED
|
@@ -1224,6 +1224,8 @@ async function $LT_GroupTagsToNamespaces({ logger, files, config }) {
|
|
|
1224
1224
|
if (config.collect?.onCollectFinish) {
|
|
1225
1225
|
let shouldContinue = true;
|
|
1226
1226
|
config.collect.onCollectFinish({
|
|
1227
|
+
totalTags,
|
|
1228
|
+
namespaces,
|
|
1227
1229
|
conflicts: allConflicts,
|
|
1228
1230
|
logger,
|
|
1229
1231
|
exit() {
|
|
@@ -1469,7 +1471,7 @@ const generationAlgorithm = pathBasedConfigGenerator({
|
|
|
1469
1471
|
// }
|
|
1470
1472
|
// }
|
|
1471
1473
|
});
|
|
1472
|
-
const keeper = configKeeper();
|
|
1474
|
+
const keeper = configKeeper({ propertyName: 'keep' });
|
|
1473
1475
|
|
|
1474
1476
|
/** @type {import('@lang-tag/cli/config').LangTagCLIConfig} */
|
|
1475
1477
|
const config = {
|
package/index.js
CHANGED
|
@@ -1204,6 +1204,8 @@ async function $LT_GroupTagsToNamespaces({ logger, files, config }) {
|
|
|
1204
1204
|
if (config.collect?.onCollectFinish) {
|
|
1205
1205
|
let shouldContinue = true;
|
|
1206
1206
|
config.collect.onCollectFinish({
|
|
1207
|
+
totalTags,
|
|
1208
|
+
namespaces,
|
|
1207
1209
|
conflicts: allConflicts,
|
|
1208
1210
|
logger,
|
|
1209
1211
|
exit() {
|
|
@@ -1449,7 +1451,7 @@ const generationAlgorithm = pathBasedConfigGenerator({
|
|
|
1449
1451
|
// }
|
|
1450
1452
|
// }
|
|
1451
1453
|
});
|
|
1452
|
-
const keeper = configKeeper();
|
|
1454
|
+
const keeper = configKeeper({ propertyName: 'keep' });
|
|
1453
1455
|
|
|
1454
1456
|
/** @type {import('@lang-tag/cli/config').LangTagCLIConfig} */
|
|
1455
1457
|
const config = {
|