claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialdesign

🌐canva-translate-design

プラグイン
canva

説明

Canvaデザイン内のすべてのテキストを別の言語に翻訳し、翻訳済みのコピーを作成します。 Canvaのエディターで各テキストボックスを手動でコピー・編集するよりも迅速に処理できます。 次のような場合に使用: ユーザーが「デザインを〇〇語に翻訳して」「スペイン語/フランス語などのバージョンを作って」「Canvaデザインをローカライズして」などと依頼したとき。

原文を表示

Translate all text in a Canva design to another language, creating a translated copy. Faster than manually copying and editing each text box in Canva's editor. Use when users say "translate my design to [language]", "make a Spanish/French/etc version", or "localize my Canva design".

ユースケース

  • デザインを別言語に翻訳するとき
  • 複数言語版のデザインを作成するとき
  • Canvaデザインをローカライズするとき

本文(日本語訳)

Canva Translate

Canvaデザイン内のすべてのテキスト要素を指定した言語に翻訳し、翻訳済みコンテンツを含む新しいコピーを作成します。

ワークフロー

1. デザインの特定

ユーザーが デザインID を直接指定した場合(通常は D で始まる。例: DABcd1234ef)、それをデザインの識別子として使用します。Canva:search-designs には渡さないでください(検索はタイトル用であり、IDには対応していません)。

ユーザーが URL を指定した場合: URLからデザインIDを抽出します(形式: https://www.canva.com/design/{design_id}/...)。

ユーザーが 名前 を指定した場合: Canva:search-designs を使用してタイトルでデザインを検索します。複数の候補が見つかった場合は、ユーザーに確認を求めてください。

2. 翻訳済みコピーの作成

Canva:resize-design を同じサイズで使用してコピーを作成します。これにより、元のデザインはそのまま保持されます。

3. 編集トランザクションの開始

新しいコピーに対して Canva:start-editing-transaction を使用し、以下を取得します:

  • 編集に使用する transaction_id
  • 各テキスト要素の element_id および現在のテキスト内容

4. テキストの翻訳

返却された各テキスト要素に対して、以下を行います:

  1. テキストを対象言語に翻訳する(Claudeの翻訳機能を使用)
  2. 書式のヒント(改行、強調パターン)を維持する
  3. 固有名詞、ブランド名、専門用語は必要に応じてそのまま保持する

5. 翻訳の適用

すべての翻訳済み要素に対して、replace_text オペレーションを使用して Canva:perform-editing-operations を実行します。すべての置換は1回の呼び出しでまとめて行います。

また、デザインのタイトルも言語を示す形に更新します(例: 末尾に「(Spanish)」を追加する、またはタイトルを翻訳後の言語で記載する)。

6. 変更のコミット

翻訳済みのプレビューサムネイルをユーザーに表示した後:

  1. 保存についての明示的な承認を求める
  2. Canva:commit-editing-transaction を使用して確定する
  3. 新しい翻訳済みデザインへのリンクを提供する

インタラクション例

ユーザー: 「Summer Sale Poster」をフランス語に翻訳して

手順:

  1. 検索: Canva:search-designs でクエリ「Summer Sale Poster」を実行
  2. コピー: Canva:resize-design で複製を作成
  3. 編集: コピーに対して Canva:start-editing-transaction を実行
  4. すべてのテキスト要素をフランス語に翻訳
  5. 適用: すべての replace_text オペレーションを含む Canva:perform-editing-operations を実行
  6. プレビューを表示し、承認を得てコミット

重要事項

  • 必ずコピーを作成し、元のデザインは絶対に変更しないこと
  • 効率のため、すべてのテキスト置換は1回の perform-editing-operations 呼び出しにまとめること
  • 翻訳によってテキスト長が大きく変わる場合は、Canva上でのレイアウト調整が必要になる可能性をユーザーに警告すること
  • 複数ページのデザインの場合、すべてのページを同一トランザクション内で翻訳すること
原文(English)を表示

Canva Translate

Translate all text elements in a Canva design to a target language, creating a new copy with translated content.

Workflow

1. Locate the Design

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.

2. Create a Translated Copy

Use Canva:resize-design with the same dimensions to create a copy. This preserves the original design untouched.

3. Start Editing Transaction

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

4. Translate Text

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

5. Apply Translations

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).

6. Commit Changes

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

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

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

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。