SurgePixSurgePix
Home>Skills Library>PPT Translator

PPT Translator

Translate an entire PowerPoint into the language you need — no reformatting required. Upload your PPT, pick a target language, and get an editable, localized version in minutes with the original layout, colors, images, and charts fully intact. Perfect for multilingual pitches, cross-border reports, and global collaboration. Supports dozens of languages including Chinese, English, Japanese, Korean, French, and German — one file per translation, every slide accurately preserved, and ready to edit in PowerPoint, Google Slides, or Keynote.

npx skills add https://github.com/surgepix/agent-skills --skill surgepix-ppt-translate
Download ZIPGitHub

SurgePix PPT Translator

Translate all text content in a PowerPoint (.pptx) file into a target language via the platform API, while preserving the original layout, images, and design elements, and return a download link to the translated file.

What the Skill Does

ActionDescription
Translate a PPTPass a local PPTX file or URL; the script uploads automatically and completes the translation in one step
Check task statusWhen run with --nowait true, look up via taskId using surgepix-query-task
Download resultRetrieve the download URL (single image URL or ZIP for multiple)
By default (--nowait false) the API waits for completion and returns the final download link directly.
Pass --nowait true to get a taskId immediately; then check progress via the surgepix-query-task skill.

Workflow

  1. Step 0: Check environment (required)

    Before running, verify config:

    node "<skills-dir>/surgepix-setup/scripts/check_env.mjs"
    • Exit 0 → proceed to Step 1
    • Exit 1 → configure .env following the surgepix-setup skill, then retry
  2. Step 1: Gather inputs

    • Local file → the script uploads automatically, then calls the API
    • URL → script uses it directly
    • Ask the user for the target language; defaults to en if not specified. Common codes: en, zh, ja, ko, fr, de, es, pt, ru, ar.
    • The user must provide exactly one PPTX file (only one file at a time). Accepted:
      • Local file path (e.g. ./slides.pptx)
      • URL pointing to a PPTX file
    • Session ID (optional): use the sessionId from the previous output when retrying; omit on the first run — the platform auto-creates a new session.
    • Validate the file before submitting:
      • Supported format: PPTX (.pptx)
      • Max file size: 50MB
      • If the format is unsupported or the file is too large, inform the user and ask them to provide a different file
  3. Step 2: Run ppt-translate

    node "<skills-dir>/surgepix-translate-ppt/scripts/translate_ppt.mjs" \
      "<file-path-or-URL>" \
      [--language <code>] \
      [--session-id <id>] \
      [--nowait <true|false>]
    FlagDescription
    <file-path-or-URL>A local path or PPTX URL (required)
    --language <code>Target language code, e.g. zh / en / jp ; default en
    --session-id <id>Session ID; pass the sessionId (number type) from a previous run to iterate
    --nowait <true|false>Wait mode, default false (see below)
    • The file parameter is a positional parameter (required; only one file at a time). Pass the path or URL directly — no --file prefix needed. The script uploads local files automatically.
    • Default (--nowait false): the API waits for completion and returns the final download link.
    • Pass --nowait true: returns taskId immediately; then query with surgepix-query-task.
  4. Step 3: Parse output

    Sync success (--nowait false, stdout):

    {"ok":true,"taskId":"task_xxx","sessionId":123,"progress":"succeeded","download":"https://...images.zip","resultType...":4,"resultType":"zip","note":"API 仅返回 ZIP 下载地址,不含单张图片 URL;禁止编造单张链接"}

    Async submitted (--nowait true, stdout) — resolve later with the surgepix-query-task skill:

    {"ok":true,"async":true,"taskId":"task_xxx","sessionId":123,"progress":"processing","download":null,"resultType":"..."}

    Failure (stderr):

    {"ok":false,"error":"..."}
  5. Step 4: Present result

    • On success: Show only the download URL from script output. Always show sessionId (note: it is a number type, e.g. 123 ) so the user can pass it in a retry if needed.
    • On failure: Report the error field. Common causes:
      • unsupported_file_format — file format not supported
      • file_too_large — file exceeds 50MB
      • invalid_language_code — invalid target language code

More skills from SurgePix

Presentation Creator

Generate AI-powered presentations from a prompt, outline, or document.

Poster Creator

Generate AI-powered event posters from structured event details and creative direction.

Illustration Creator

Generate 16:9 horizontal article illustrations (hand-drawn style) from a topic or per-shot specifications.

XHS Creator

Generate Xiaohongshu vertical carousel image sets from per-page copy descriptions.

Brand Logo Generator

Generate a brand logo image from a text description plus optional reference images.

Film Storyboards Generator

Generate film storyboard images from a script / storyboard description.

Generate Photo-poetic Editorial Artwork from an Image

Generate photo-poetic editorial artwork from uploaded images.

Generate Restaged Cinematic Artwork from an Image

Generate restaged cinematic artwork from one or more uploaded photos.

Generate Brand Placement

Generate images while locking a brand logo and/or fixed text to a consistent position.

Generate Channel Crop Pack

Generate a channel crop pack from one or more source images.

Background Remover

Generate AI-powered transparent PNGs by removing image backgrounds.

Image Translator

Translate text on one or more images to a target language while preserving the background.

Image Editing / Style Change

Edit an image via reference images and a text edit instruction.

SurgePixSurgePix

Create & Edit Visuals with AI

Contact UsXDiscordEmail[email protected]
ToolsPDF to JPG converterPNG to JPG converterJPG to PDF converterHEIC to PDF converterHEIC to PNG converterImage ResizerAI Image EditorYouTube Banner MakerAI HairstyleFather's day 2026Mother's day 2026Bar Graph MakerPie Chart MakerVenn Diagram Maker
Helpful ResourcesTate-A-TateSurgeflowSkills LibraryPresentation CreatorPoster CreatorIllustration CreatorXHS CreatorBackground RemoverImage TranslatorPPT TranslatorBrand Logo GeneratorFilm Storyboards GeneratorGenerate Photo-poetic Editorial Artwork from an ImageGenerate Restaged Cinematic Artwork from an ImageGenerate Brand PlacementGenerate Channel Crop PackImage Editing / Style Change

© 2026 SurgePix. All rights reserved. Made with ❤️ for productivity.