@localess/cli 0.0.1-dev.20260216154305 → 0.0.1-dev.20260217090558
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/index.js +2 -5
- package/dist/index.mjs +2 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -513,9 +513,6 @@ var TranslationUpdateType = /* @__PURE__ */ ((TranslationUpdateType2) => {
|
|
|
513
513
|
TranslationUpdateType2["UPDATE_EXISTING"] = "update-existing";
|
|
514
514
|
return TranslationUpdateType2;
|
|
515
515
|
})(TranslationUpdateType || {});
|
|
516
|
-
function isTranslationUpdateType(value) {
|
|
517
|
-
return value in TranslationUpdateType;
|
|
518
|
-
}
|
|
519
516
|
|
|
520
517
|
// src/models/translation.zod.ts
|
|
521
518
|
var import_zod = require("zod");
|
|
@@ -527,10 +524,10 @@ var zTranslationUpdateSchema = import_zod.z.object({
|
|
|
527
524
|
});
|
|
528
525
|
|
|
529
526
|
// src/commands/translations/push/index.ts
|
|
530
|
-
var translationsPushCommand = new import_commander4.Command("push
|
|
527
|
+
var translationsPushCommand = new import_commander4.Command("push").argument("<locale>", "Locale to push").description("Push locale translations to Localess").requiredOption("-f, --file <path>", "Path to the translations file to push").option("-t, --type <type>", `Push type. Possible values are : ${Object.values(TranslationUpdateType)}`, "add-missing" /* ADD_MISSING */).action(async (locale, options) => {
|
|
531
528
|
console.log("Pushing translations with arguments:", locale);
|
|
532
529
|
console.log("Pushing translations with options:", options);
|
|
533
|
-
if (
|
|
530
|
+
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
534
531
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
535
532
|
return;
|
|
536
533
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -490,9 +490,6 @@ var TranslationUpdateType = /* @__PURE__ */ ((TranslationUpdateType2) => {
|
|
|
490
490
|
TranslationUpdateType2["UPDATE_EXISTING"] = "update-existing";
|
|
491
491
|
return TranslationUpdateType2;
|
|
492
492
|
})(TranslationUpdateType || {});
|
|
493
|
-
function isTranslationUpdateType(value) {
|
|
494
|
-
return value in TranslationUpdateType;
|
|
495
|
-
}
|
|
496
493
|
|
|
497
494
|
// src/models/translation.zod.ts
|
|
498
495
|
import { z } from "zod";
|
|
@@ -504,10 +501,10 @@ var zTranslationUpdateSchema = z.object({
|
|
|
504
501
|
});
|
|
505
502
|
|
|
506
503
|
// src/commands/translations/push/index.ts
|
|
507
|
-
var translationsPushCommand = new Command4("push
|
|
504
|
+
var translationsPushCommand = new Command4("push").argument("<locale>", "Locale to push").description("Push locale translations to Localess").requiredOption("-f, --file <path>", "Path to the translations file to push").option("-t, --type <type>", `Push type. Possible values are : ${Object.values(TranslationUpdateType)}`, "add-missing" /* ADD_MISSING */).action(async (locale, options) => {
|
|
508
505
|
console.log("Pushing translations with arguments:", locale);
|
|
509
506
|
console.log("Pushing translations with options:", options);
|
|
510
|
-
if (
|
|
507
|
+
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
511
508
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
512
509
|
return;
|
|
513
510
|
}
|