/open-screenshot-generator:store-localizationfrom Open Screenshot Generator
Localizes App Store and Play Store screenshots across multiple languages using the open-screenshot-generator CLI. Handles per-language copy, font overrides, CSV round-trips with translation agencies, and renders fastlane-compatible output.
Ships in Open Screenshot Generator. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The end state: one project, one layout, several store languages, rendered into a
screenshots/<locale>/ folder per language under osg/out/ that fastlane's deliver can upload as
is, with osg verify exiting 0 for every locale.
A language is an overlay, not a copy. The project keeps one set of artboards and one layout. Only these can differ per language:
Everything else is shared. There is no per language artboard, no duplicated project, and no second design to keep in sync. That is the whole point: a layout fix lands in every language at once.
Two consequences that will otherwise cost you an hour:
update_element
changes the copy every language starts from. Only set_localized_text, set_localized_texts and
set_locale_override write one language.osg render does that per locale for you; if you are driving tools by hand, set_locale then
export_all.The base language is the language the design is written in. It labels the source that every translation is tracked against, and it names the base folder in both store uploads.
It is locked the moment the project has any export language, because every override is hashed against a base string and re-basing would silently re-point all of them. So set it first.
[{ "tool": "add_locales", "args": { "locales": ["de-DE"], "baseLocale": "en-US" } }]
baseLocale is accepted only on that first call. After that, set_base_locale refuses.
Codes are store locales, not two letter languages: en-US and en-GB are different listings, and
so are zh-Hans and zh-Hant. pt alone is ambiguous and is refused.
npx -y open-screenshot-generator@0 edit --script osg/locales.json
[
{ "tool": "list_supported_locales", "args": { "query": "chinese" } },
{ "tool": "add_locales", "args": { "locales": ["de-DE", "ja", "pt-BR", "zh-Hans"], "autoFont": true, "autoFit": true } },
{ "tool": "list_locales", "args": {} }
]
list_supported_locales is the catalog of all 57, with the code to add by, whether a machine engine
can draft it, what App Store Connect and Google Play each call it, and which font has to be
substituted for its script. Call it before add_locales rather than guessing a code.
autoFont (default true) substitutes a family that can actually draw the script. Turn it off only
if you have checked the design font covers Japanese, Arabic or Thai. It does not.autoFit (default true) shrinks a translation that overruns its box instead of clipping it.machineTranslate (default false) drafts every new language with the engine right away. Leave it
off, see the next step.Mirror the same list into locales in osg/osg.config.ts so a fresh clone renders the same set.
Two vocabularies, and they resolve against different lists. add_locales and set_base_locale
resolve against the catalog, because a language being added is by definition not in the project yet.
Every other language tool resolves against the project's own list. Using the wrong one either invents
a locale with no override map or refuses a language that does exist.
Store copy is exactly what a machine translator is worst at: it is short, idiomatic, brand specific and load bearing. An agent that reads the app writes better German headlines than the engine does. So the preferred path is read, translate, write back, in two calls.
[{ "tool": "list_translations", "args": { "filter": "untranslated", "limit": 200 } }]
Each cell says where its string came from, which is what tells you what you may overwrite:
| Origin | Meaning | Safe to overwrite |
|---|---|---|
inherited | nothing written yet, the base copy is showing | yes |
manual | a person or an agent wrote it | ask first |
auto | the machine engine drafted it | yes, and improving it is the job |
stale-* | the base copy changed after this was translated | yes, it is a translation of copy that no longer exists |
Then write them all in one call. One round trip, one undo step, one save:
[
{ "tool": "set_localized_texts", "args": { "writes": [
{ "elementId": "headline", "locale": "de-DE", "text": "Schlaf endlich durch" },
{ "elementId": "sub", "locale": "de-DE", "text": "Jede Nacht, automatisch" },
{ "elementId": "headline", "locale": "ja", "text": "ぐっすり眠れる夜へ" }
] } }
]
An empty string, or a string identical to the base copy, clears the translation and the element falls back to the base. Everything written this way is marked as human written, so a later engine run will not overwrite it.
Translation notes that are not optional:
The machine engine is the fallback, for a language you do not read and for refreshing its own earlier drafts:
[{ "tool": "translate_locales", "args": { "locales": ["th"], "only": "empty", "guidance": "informal, second person, keep product names in English" } }]
only: "stale" refreshes drafts whose base copy has since changed. Strings a person wrote are skipped
unless includeManual is set, and leaving it off is what protects reviewed copy. If no engine is
configured, the tool says so and tells you to write the strings yourself, which was the better path
anyway.
[{ "tool": "export_translations_csv", "args": {} }]
The result is a JSON document, not a file: { csv, locales, rows }, where csv is RFC 4180 text with
one row per string, the ids first, then the base language, then a column per language. Write the
csv field to a file yourself and send that file. It is the format an agency takes.
npx -y open-screenshot-generator@0 call export_translations_csv | jq -r .csv > osg/translations.csv
(npx -y open-screenshot-generator@0 call export_translations_csv | ConvertFrom-Json).csv |
Set-Content -Encoding utf8 osg/translations.csv
When it comes back, read the file and send its contents as the csv argument. Build the call
programmatically rather than pasting a spreadsheet into a prompt:
[
{ "tool": "import_translations_csv", "args": { "csv": "<the file contents>", "dryRun": true } },
{ "tool": "import_translations_csv", "args": { "csv": "<the file contents>" } }
]
artboardId plus elementId, falling back to the base string when the ids do not
line up and exactly one element has that string. So do not let the agency reorder or renumber.add_locales first.dryRun first and report what it says it will change.[
{ "tool": "set_locale_override", "args": { "elementId": "headline", "locale": "de-DE", "fontSize": 40, "size": { "width": 900, "height": 260 } } },
{ "tool": "set_locale_override", "args": { "elementId": "phone-1", "locale": "ja", "screenshotSrc": "asset:<id>" } },
{ "tool": "set_locale_override", "args": { "elementId": "award-badge", "locale": "pt-BR", "hidden": true } }
]
What each one is for:
screenshotSrc is the big one. A German headline over an English app screen is not localized. Take
the app's own screenshots per language, upload_asset each once, and override the device slot.fontFamily when a script needs a face the design font cannot draw. Setting it also turns off
the automatic script substitution for that element, so only set it when you mean to.fontSize when a translation is long. Setting it turns off auto shrink for that element, so the box
will clip if the string grows again.position, size, rotation, scale, textAlign for a real layout difference.hidden: true to drop a badge or an award from the markets that never earned it. Store review does
read those.Overriding is what pulls a property apart. content, screenshotSrc, imageSrc and mediaId
are always per language. Everything else is shared until you override it, and update_element
remains the way to change something for every language at once.
To undo: reset_locale_overrides with scope of element, artboard or project. With fields
it drops only those properties and keeps the copy. Without fields it drops everything that language
holds, translations included, which is what to do before re-translating from scratch.
npx -y open-screenshot-generator@0 localize
npx -y open-screenshot-generator@0 render
npx -y open-screenshot-generator@0 manifest
npx -y open-screenshot-generator@0 verify
osg localize is the convenience wrapper over Steps 2 to 4 driven from osg/osg.config.ts. Run
osg localize --help for the exact subcommand and flag names in the release you have; when the
wrapper and this page disagree, the tool calls above are the contract.
osg render switches the canvas to each locale, exports, and writes:
osg/out/
screenshots/
en-US/ 01_Hero.png 02_Search.png ...
de-DE/ 01_Hero.png 02_Search.png ...
ja/ 01_Hero.png 02_Search.png ...
That is the fastlane deliver layout, so a repo that already uses fastlane can point at it directly.
Read osg/osg.manifest.json for the authoritative list rather than globbing.
The upload maps the codes for you: this project's key is zh-Hans, App Store Connect says zh-Hans,
Google Play says zh-CN. Nothing derives one from the other, so a locale the store does not have is
reported rather than guessed.
| The user asks for | Edit | Then run |
|---|---|---|
| One more language | osg.config.ts locales, then add_locales | localize, render |
| Better wording in one language | set_localized_texts | render |
| "The German headline is cut off" | set_locale_override fontSize or size for de-DE | render |
| Localized app screenshots | upload_asset, then set_locale_override screenshotSrc | render |
| A badge removed in one market | set_locale_override hidden: true | render |
| Send strings to a translator | export_translations_csv | write the file |
| Strings came back | import_translations_csv with dryRun first | render |
| Drop a language | remove_locales, and osg.config.ts locales | render |
| Start one language over | reset_locale_overrides scope: "project" | localize, render |
| A layout change in every language | update_element on the base document | render |
"This project has no language X." You used a code the project does not have. list_locales is the
project's list, list_supported_locales is the catalog. Add before you write.
A tool refused the base language. Correct. The base language is the design. Use update_element
to change the copy every language starts from.
Boxes of squares instead of Japanese, Arabic or Thai text. That is tofu: the family cannot draw
the script. Either autoFont was turned off, or a fontFamily override pinned a Latin face. Check
list_fonts --script cjk (also arabic, urdu, hebrew, thai, devanagari, bengali) and
override with a family from that list. An unknown family is rejected outright rather than substituted,
so a serif in the export means the family never reached the element.
A translation is there in list_translations but not in the render. The canvas is on another
language, or the export ran before the switch. osg render handles this; a hand driven export needs
set_locale first.
Text clips even though autoFit is on. Something set a fontSize override on that element, which
turns auto shrink off for it. Clear it with reset_locale_overrides and fields: ["fontSize"].
An override "did nothing". A property other than content, screenshotSrc, imageSrc or
mediaId only takes effect once it is detached, which is what writing it through
set_locale_override does. Writing it through update_element changed the shared design instead.
The base language cannot be changed. By design, once export languages exist. Start a new project if the design really was written in the wrong language.
A CSV import wiped nothing and reported nothing. The ids did not match. The sheet was reordered, renumbered, or saved from a different project.
osg uploadWhat SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/app-preview-videoBuilds an App Store App Preview video (and a Play Store or landing page promo cut) from a screen recording of the app, using the open-screenshot-generator CLI (`osg video`): it starts from one of 20 ready made preview scenes, drops real captured footage into the phone mockup, times the text and gesture overlays, checks the timeline against Apple Review Guideline 2.3.4, and renders H.264 MP4s at 886x1920. Use this whenever someone asks for an app preview, a preview video, a store video, an App Store trailer, a demo video for the listing, or says things like "make a video for the App Store", "turn this screen recording into a store preview" or "my listing needs a video". Also use it for follow ups: a different story, different overlay copy, retiming, a longer or shorter cut, or a version without the frame./editor-toolsDrives the live Open Screenshot Generator editor tool by tool over MCP, using `osg mcp` to expose the design tools (artboards, elements, backgrounds, fonts, the asset libraries, templates, App Preview timelines, 57 locales and PNG export) to any MCP client, plus `osg install` to write the server entry into a detected agent config. Use this whenever someone wants to edit an existing screenshot project rather than regenerate it, asks to connect the design tools to Claude Code, Cursor, Claude Desktop or VS Code, or says things like "move that headline", "make the phone bigger", "add an MCP server for my screenshots", "let me edit the design from here" or "what tools do I have". Read it before making any direct tool call, because the element, locale and export tools have asymmetries that silently do nothing if you guess.npx claudepluginhub dotnetdreamer/open-screenshot-generator --plugin open-screenshot-generatorOther plugins' skills for the same job