@goenhance/strapi-plugins-translate 1.0.1 → 1.0.2

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.
@@ -579,7 +579,7 @@ const controllers$1 = ({ strapi: strapi2 }) => ({
579
579
  ctx.status = 400;
580
580
  ctx.body = {
581
581
  data: null,
582
- meta: { ok: false, message: "Invalid request parameters" }
582
+ meta: { ok: false, message: "请求参数无效" }
583
583
  };
584
584
  return;
585
585
  }
@@ -588,20 +588,20 @@ const controllers$1 = ({ strapi: strapi2 }) => ({
588
588
  ctx.status = 404;
589
589
  ctx.body = {
590
590
  data: null,
591
- meta: { ok: false, message: "Content type not found" }
591
+ meta: { ok: false, message: "未找到内容类型" }
592
592
  };
593
593
  return;
594
594
  }
595
595
  ctx.body = {
596
596
  data: {
597
597
  taskId: `${contentType}-${Date.now()}`,
598
- message: "Translation task started in background"
598
+ message: "翻译任务在后台启动"
599
599
  },
600
600
  meta: {
601
601
  ok: true,
602
602
  successCount: 0,
603
603
  failureCount: 0,
604
- message: "Translation task has been queued. You will receive a Feishu notification when it completes."
604
+ message: "翻译任务已排队。完成后,您将收到飞书通知。"
605
605
  }
606
606
  };
607
607
  setImmediate(() => {
@@ -578,7 +578,7 @@ const controllers$1 = ({ strapi: strapi2 }) => ({
578
578
  ctx.status = 400;
579
579
  ctx.body = {
580
580
  data: null,
581
- meta: { ok: false, message: "Invalid request parameters" }
581
+ meta: { ok: false, message: "请求参数无效" }
582
582
  };
583
583
  return;
584
584
  }
@@ -587,20 +587,20 @@ const controllers$1 = ({ strapi: strapi2 }) => ({
587
587
  ctx.status = 404;
588
588
  ctx.body = {
589
589
  data: null,
590
- meta: { ok: false, message: "Content type not found" }
590
+ meta: { ok: false, message: "未找到内容类型" }
591
591
  };
592
592
  return;
593
593
  }
594
594
  ctx.body = {
595
595
  data: {
596
596
  taskId: `${contentType}-${Date.now()}`,
597
- message: "Translation task started in background"
597
+ message: "翻译任务在后台启动"
598
598
  },
599
599
  meta: {
600
600
  ok: true,
601
601
  successCount: 0,
602
602
  failureCount: 0,
603
- message: "Translation task has been queued. You will receive a Feishu notification when it completes."
603
+ message: "翻译任务已排队。完成后,您将收到飞书通知。"
604
604
  }
605
605
  };
606
606
  setImmediate(() => {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.1",
2
+ "version": "1.0.2",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "plugin",