auto translation of hero image added#136
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughLocalized hero-image generation and referencing were added: translation guidance for the app name was relaxed, the translate workflow now generates per-language hero images via the OpenAI image-edit API and ImageMagick, and the hosting workflow copies those images and rewrites translated markdown to reference language-specific hero files. Changes
Sequence Diagram(s)sequenceDiagram
participant GH as GitHub Actions (translate-content)
participant IM as ImageMagick
participant API as OpenAI Images Edit (gpt-image-1)
participant Repo as Repository (generated/HeroImages)
participant Host as GitHub Actions (host-user-guide)
GH->>IM: pad source hero_meditate.png to 1536x1024
loop per language
GH->>API: POST edit request with prompt + padded image
API-->>GH: response (base64 image or .error.message)
alt success
GH->>GH: decode, crop center to 1536x768, resize to 1440x720
GH->>Repo: write generated/HeroImages/hero_meditate-${lang}.png
else error
GH-->>GH: emit warning, skip language
end
end
Host->>Repo: copy hero_meditate-${lang}.png -> userGuideScreenshots/
Host->>Repo: update translated markdown image refs to hero_meditate-${lang}.png
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Chores