@localess/cli 0.0.1-dev.20260217090558 → 0.0.1-dev.20260217094502
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 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -280,6 +280,7 @@ function localessClient(options) {
|
|
|
280
280
|
},
|
|
281
281
|
body: JSON.stringify(body)
|
|
282
282
|
});
|
|
283
|
+
console.log(LOG_GROUP, "updateTranslations : ", await response.json());
|
|
283
284
|
if (options.debug) {
|
|
284
285
|
console.log(LOG_GROUP, "updateTranslations status : ", response.status);
|
|
285
286
|
}
|
|
@@ -527,7 +528,7 @@ var zTranslationUpdateSchema = import_zod.z.object({
|
|
|
527
528
|
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
529
|
console.log("Pushing translations with arguments:", locale);
|
|
529
530
|
console.log("Pushing translations with options:", options);
|
|
530
|
-
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
531
|
+
if (!zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
531
532
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
532
533
|
return;
|
|
533
534
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -257,6 +257,7 @@ function localessClient(options) {
|
|
|
257
257
|
},
|
|
258
258
|
body: JSON.stringify(body)
|
|
259
259
|
});
|
|
260
|
+
console.log(LOG_GROUP, "updateTranslations : ", await response.json());
|
|
260
261
|
if (options.debug) {
|
|
261
262
|
console.log(LOG_GROUP, "updateTranslations status : ", response.status);
|
|
262
263
|
}
|
|
@@ -504,7 +505,7 @@ var zTranslationUpdateSchema = z.object({
|
|
|
504
505
|
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
506
|
console.log("Pushing translations with arguments:", locale);
|
|
506
507
|
console.log("Pushing translations with options:", options);
|
|
507
|
-
if (zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
508
|
+
if (!zTranslationUpdateTypeSchema.safeParse(options.type).success) {
|
|
508
509
|
console.error("Invalid type provided. Possible values are :", Object.values(TranslationUpdateType));
|
|
509
510
|
return;
|
|
510
511
|
}
|