canva-translate-design

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Canva Translate

Canva 翻译

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 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.
如果用户提供URL:从URL中提取设计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
操作批量替换所有已翻译的元素。将所有替换操作整合到一次调用中。
同时更新设计标题以标注语言(例如,添加“(西班牙语)”或使用翻译后的标题)。

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中调整布局
  • 对于多页设计,在同一事务中翻译所有页面