From 1fb95e415132a289589ee4476128c5a1518b7322 Mon Sep 17 00:00:00 2001 From: Rogee Date: Thu, 30 Jul 2026 12:26:42 +0800 Subject: [PATCH] =?UTF-8?q?i18n:=20=E7=BF=BB=E8=AF=91=E9=9B=86=E6=88=90?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=BA=94=E7=94=A8=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 集成卡片名称和描述存储在 integration_apps 表中(来自 migration 030), 此前为英文。新增 migration 059 翻译为中文: - Dashboard Apps → 仪表板应用 - OpenAI/Dialogflow/Google Translate/Dyte/LeadSquared/Slack/ Shopify/Linear/Notion/Webhook 的描述全部翻译 品牌名(OpenAI/Dialogflow/Dyte/Slack/Shopify/Linear/Notion/Webhook)保留英文。 --- ...000059_translate_integration_apps.down.sql | 20 +++++++++++++++++++ .../000059_translate_integration_apps.up.sql | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 backend/migrations/000059_translate_integration_apps.down.sql create mode 100644 backend/migrations/000059_translate_integration_apps.up.sql diff --git a/backend/migrations/000059_translate_integration_apps.down.sql b/backend/migrations/000059_translate_integration_apps.down.sql new file mode 100644 index 00000000..423e6af0 --- /dev/null +++ b/backend/migrations/000059_translate_integration_apps.down.sql @@ -0,0 +1,20 @@ +-- Revert integration app names and descriptions back to English +UPDATE integration_apps SET + name = CASE + WHEN name = '仪表板应用' THEN 'Dashboard Apps' + ELSE name + END, + description = CASE + WHEN name = 'Dashboard Apps' THEN 'Embed custom dashboard apps in the conversation sidebar' + WHEN name = 'OpenAI' THEN 'Connect OpenAI for label suggestions and AI-assisted workflows' + WHEN name = 'Dialogflow' THEN 'Connect Dialogflow agents to inboxes' + WHEN name = 'Google Translate' THEN 'Connect Google Translate for message translation' + WHEN name = 'Dyte' THEN 'Connect Dyte for video meetings' + WHEN name = 'LeadSquared' THEN 'Connect LeadSquared CRM activity sync' + WHEN name = 'Slack' THEN 'Connect Slack channels for real-time notifications' + WHEN name = 'Shopify' THEN 'Sync Shopify orders and customer data' + WHEN name = 'Linear' THEN 'Create Linear issues from conversations' + WHEN name = 'Notion' THEN 'Export conversation summaries to Notion pages' + WHEN name = 'Webhook' THEN 'Custom webhook for event-driven integrations' + ELSE description + END; diff --git a/backend/migrations/000059_translate_integration_apps.up.sql b/backend/migrations/000059_translate_integration_apps.up.sql new file mode 100644 index 00000000..bf945af5 --- /dev/null +++ b/backend/migrations/000059_translate_integration_apps.up.sql @@ -0,0 +1,20 @@ +-- Translate integration app names and descriptions to Chinese +UPDATE integration_apps SET + name = CASE + WHEN name = 'Dashboard Apps' THEN '仪表板应用' + ELSE name + END, + description = CASE + WHEN name = 'Dashboard Apps' THEN '在对话侧边栏中嵌入自定义仪表板应用' + WHEN name = 'OpenAI' THEN '连接 OpenAI 以获取标签建议和 AI 辅助工作流' + WHEN name = 'Dialogflow' THEN '将 Dialogflow 代理连接到收件箱' + WHEN name = 'Google Translate' THEN '连接 Google 翻译以进行消息翻译' + WHEN name = 'Dyte' THEN '连接 Dyte 进行视频会议' + WHEN name = 'LeadSquared' THEN '连接 LeadSquared CRM 活动同步' + WHEN name = 'Slack' THEN '连接 Slack 频道以获取实时通知' + WHEN name = 'Shopify' THEN '同步 Shopify 订单和客户数据' + WHEN name = 'Linear' THEN '从对话中创建 Linear 问题' + WHEN name = 'Notion' THEN '将会话摘要导出到 Notion 页面' + WHEN name = 'Webhook' THEN '用于事件驱动集成的自定义 Webhook' + ELSE description + END;