@localess/cli 0.0.1-dev.20260217105008 → 0.0.1-dev.20260217120300

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 CHANGED
@@ -280,10 +280,10 @@ function localessClient(options) {
280
280
  },
281
281
  body: JSON.stringify(body)
282
282
  });
283
- console.log(LOG_GROUP, "updateTranslations : ", await response.json());
284
283
  if (options.debug) {
285
284
  console.log(LOG_GROUP, "updateTranslations status : ", response.status);
286
285
  }
286
+ return response.json();
287
287
  } catch (error) {
288
288
  console.error(LOG_GROUP, "updateTranslations error : ", error);
289
289
  }
@@ -552,8 +552,16 @@ var translationsPushCommand = new import_commander4.Command("push").argument("<l
552
552
  return;
553
553
  }
554
554
  console.log("Pushing translations to Localess with locale:", locale, "and type:", options.type);
555
- await client.updateTranslations(locale, options.type, translationValues);
556
- console.log("Successfully pushed translations to Localess");
555
+ const message = await client.updateTranslations(locale, options.type, translationValues);
556
+ if (message) {
557
+ console.log("Successfully pushed translations to Localess");
558
+ console.log("Summary:", message.message);
559
+ if (message.ids) {
560
+ console.log("Updated translation IDs:", message.ids);
561
+ }
562
+ } else {
563
+ console.log("Something went wrong while pushing translations to Localess");
564
+ }
557
565
  });
558
566
 
559
567
  // src/commands/translations/index.ts
package/dist/index.mjs CHANGED
@@ -257,10 +257,10 @@ function localessClient(options) {
257
257
  },
258
258
  body: JSON.stringify(body)
259
259
  });
260
- console.log(LOG_GROUP, "updateTranslations : ", await response.json());
261
260
  if (options.debug) {
262
261
  console.log(LOG_GROUP, "updateTranslations status : ", response.status);
263
262
  }
263
+ return response.json();
264
264
  } catch (error) {
265
265
  console.error(LOG_GROUP, "updateTranslations error : ", error);
266
266
  }
@@ -529,8 +529,16 @@ var translationsPushCommand = new Command4("push").argument("<locale>", "Locale
529
529
  return;
530
530
  }
531
531
  console.log("Pushing translations to Localess with locale:", locale, "and type:", options.type);
532
- await client.updateTranslations(locale, options.type, translationValues);
533
- console.log("Successfully pushed translations to Localess");
532
+ const message = await client.updateTranslations(locale, options.type, translationValues);
533
+ if (message) {
534
+ console.log("Successfully pushed translations to Localess");
535
+ console.log("Summary:", message.message);
536
+ if (message.ids) {
537
+ console.log("Updated translation IDs:", message.ids);
538
+ }
539
+ } else {
540
+ console.log("Something went wrong while pushing translations to Localess");
541
+ }
534
542
  });
535
543
 
536
544
  // src/commands/translations/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localess/cli",
3
- "version": "0.0.1-dev.20260217105008",
3
+ "version": "0.0.1-dev.20260217120300",
4
4
  "description": "Localess Command Line.",
5
5
  "keywords": [
6
6
  "localess",