canva-translate-design

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Canva Translate

Canva Translate

Translate all text elements in a Canva design to a target language, creating a new copy with translated content.
将 Canva 设计中的所有文本元素翻译为目标语言,并创建一个包含翻译内容的新副本。

Workflow

工作流

1. Locate the Design

1. 定位设计

If user provides a design ID directly (typically starts with
D
, e.g.
DABcd1234ef
), use that as the design identifier; do not pass it to
Canva:search-designs
(search is for titles, not IDs).
If user provides a URL: Extract the design ID from the URL (format:
https://www.canva.com/design/{design_id}/...
).
If user provides a name: Use
Canva:search-designs
to find the design by title. If multiple matches, ask user to clarify.
如果用户直接提供 design ID(通常以
D
开头,例如
DABcd1234ef
),则将其用作设计标识符;不要将其传给
Canva:search-designs
(该搜索用于查找标题,而不是 ID)。
如果用户提供 URL:从 URL 中提取 design ID(格式:
https://www.canva.com/design/{design_id}/...
)。
如果用户提供 名称:使用
Canva:search-designs
按标题查找设计。如果出现多个匹配项,请让用户进一步确认。

2. Create a Translated Copy

2. 创建翻译后的副本

Use
Canva:resize-design
with the same dimensions to create a copy. This preserves the original design untouched.
使用
Canva:resize-design
以相同的尺寸创建副本,从而确保原始设计保持不变。

3. Start Editing Transaction

3. 启动编辑事务

Use
Canva:start-editing-transaction
on the new copy to get:
  • transaction_id
    for making edits
  • All text elements with their
    element_id
    and current text content
在新副本上使用
Canva:start-editing-transaction
,获取:
  • 用于进行编辑的
    transaction_id
  • 所有文本元素及其
    element_id
    和当前文本内容

4. Translate Text

4. 翻译文本

For each text element returned:
  1. Translate the text to the target language (use Claude's translation capability)
  2. Preserve formatting cues (line breaks, emphasis patterns)
  3. Keep proper nouns, brand names, and technical terms as appropriate
对于返回的每个文本元素:
  1. 使用 Claude 的翻译能力将文本翻译为目标语言
  2. 保留格式特征(换行符、强调模式)
  3. 根据实际情况保留专有名词、品牌名称和技术术语

5. Apply Translations

5. 应用翻译

Use
Canva:perform-editing-operations
with
replace_text
operations for all translated elements. Batch all replacements in a single call.
Also update the design title to indicate the language (e.g., append " (Spanish)" or use translated title).
使用
Canva:perform-editing-operations
,通过
replace_text
操作替换所有已翻译的元素。在一次调用中批量提交所有替换。
同时更新设计标题以标明语言,例如在标题后追加“ (Spanish)”,或使用翻译后的标题。

6. Commit Changes

6. 提交更改

After showing the user the translated preview thumbnail:
  1. Ask for explicit approval to save
  2. Use
    Canva:commit-editing-transaction
    to finalize
  3. Provide the link to the new translated design
向用户展示翻译后的预览缩略图后:
  1. 明确询问用户是否批准保存
  2. 使用
    Canva:commit-editing-transaction
    完成最终提交
  3. 提供新翻译设计的链接

Example Interaction

交互示例

User: Translate my "Summer Sale Poster" to French
Steps:
  1. Search:
    Canva:search-designs
    with query "Summer Sale Poster"
  2. Copy:
    Canva:resize-design
    to create duplicate
  3. Edit:
    Canva:start-editing-transaction
    on copy
  4. Translate all text elements to French
  5. Apply:
    Canva:perform-editing-operations
    with all
    replace_text
    operations
  6. Show preview, get approval, commit
用户:将我的“夏季促销海报”翻译成法语
步骤:
  1. 搜索:使用
    Canva:search-designs
    ,查询“夏季促销海报”
  2. 复制:使用
    Canva:resize-design
    创建副本
  3. 编辑:在副本上使用
    Canva:start-editing-transaction
  4. 将所有文本元素翻译成法语
  5. 应用:使用
    Canva:perform-editing-operations
    执行所有
    replace_text
    操作
  6. 展示预览、获得批准并提交

Important Notes

重要说明

  • Always create a copy—never modify the original design
  • Batch all text replacements in one
    perform-editing-operations
    call for efficiency
  • If translation significantly changes text length, warn user that layout adjustments may be needed in Canva
  • For designs with many pages, translate all pages in the same transaction
  • 始终创建副本——绝不修改原始设计
  • 在一次
    perform-editing-operations
    调用中批量执行所有文本替换,以提高效率
  • 如果翻译导致文本长度发生显著变化,请提醒用户可能需要在 Canva 中调整布局
  • 对于包含多个页面的设计,在同一事务中翻译所有页面