@localess/cli 0.0.1-dev.20260217090558 → 0.0.1-dev.20260217090947
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -527,7 +527,7 @@ var zTranslationUpdateSchema = import_zod.z.object({
|
|
|
527
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) => {
|
|
528
528
|
console.log("Pushing translations with arguments:", locale);
|
|
529
529
|
console.log("Pushing translations with options:", options);
|
|
530
|
-
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
530
|
+
if (!zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
531
531
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
532
532
|
return;
|
|
533
533
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -504,7 +504,7 @@ var zTranslationUpdateSchema = z.object({
|
|
|
504
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) => {
|
|
505
505
|
console.log("Pushing translations with arguments:", locale);
|
|
506
506
|
console.log("Pushing translations with options:", options);
|
|
507
|
-
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
507
|
+
if (!zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
508
508
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
509
509
|
return;
|
|
510
510
|
}
|