ui-i18n
Skill329 starsChanged 7 days agoMIT-0View on GitHub
Use when adding, editing or reviewing web UI text and its French (Canada) translation, and for the release catch-up.
In this repository42 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-modelSkill
- agent-capability-reviewSkill
- api-rbac-testSkill
- backend-lambdaSkill
- code-reviewSkill
- create-hf-dataset-prSkill
- curate-security-resultsSkill
- cut-release-changelogSkill
- dependabot-prsSkill
- documentationSkill
- extraction-pipelineSkill
- fix-single-issueSkill
- frontend-uiSkill
- full-test-batterySkill
- infrastructureSkill
- live-auth-checksSkill
- live-eval-and-costSkill
- prepare-changelogSkill
- prep-develop-for-releaseSkill
- product-demoSkill
- pr-review-ciSkill
- pr-reviewSkill
- releaseSkill
- release-validationSkill
- remove-classification-flat-keysSkill
- repo-quality-reviewSkill
- run-benchmarksSkill
- run-stack-testsSkill
- srt-security-scanSkill
- sync-pii-anonymizerSkill
- testing-qaSkill
- test-upgradeSkill
- transform-deploy-testSkill
- update-solution-profileSkill
- ux-test-ciSkill
- ux-testSkill
- ux-test-stories-ciSkill
- ux-test-storiesSkill
- work-the-backlog-hazardsSkill
- work-the-backlogSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when a change adds, edits or removes user-facing text in src/ui/, adds a product term, or is a review of such a change, and …
- Very specific: line 31
Write them: make ui-i18n-ingest LOCALE=fr-CA FILE=scratch/todo.json.
- Very specific: line 36
When the French cannot be written in this change, delete the stale entries, and any dead ones, instead, so the English shows: make …
- Very specific: line 41
Never edit fr-CA.json by hand, its sourceHash least of all, and do not use make ui-i18n-translate (Amazon Translate) in this flow: its …
- Very specific: line 59
Write ordinary spaces before punctuation: ui-i18n-ingest puts in the no-break spaces those rules ask for.
- Distinctive: line 67
Keep the ICU: Every argument, plural, select and rich-text tag of the English stays, with its branch keys.
- Very specific: line 75
Read the diff under src/ui/src/i18n/ beside the English each entry translates, and flag:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web UI translations — GenAI IDP Accelerator
Use this skill when a change adds, edits or removes user-facing text in src/ui/,
adds a product term, or is a review of such a change, and before a release is cut.
The web UI ships in English and French (Canada). A message's translations are
added, updated or removed in the change that adds or edits its English, and the
coding agent that edited the screen writes the French, since it knows where the
text shows. How a message is declared, the catalogs and the gates are in
the i18n README; this skill is the procedure.
In the change that edits the English
- Declare the text with react-intl, as
Writing a message says: an
explicit dotted
id, the English asdefaultMessage, and adescriptionthat says where the text shows and what each argument holds. Runmake ui-i18n-extract. - List what to translate:
mkdir -p scratch && make ui-i18n-todo LOCALE=fr-CA > scratch/todo.json(scratch/is gitignored). The list holds the entries the catalog lacks and the stale ones, whose English changed after they were translated, each with its English, its description, the glossary rows it uses and, when stale, its old translation. - Give each entry its French as a
"message", by the rules below. A long list can be written and ingested in parts: an entry needs only itsidandmessage. - Write them:
make ui-i18n-ingest LOCALE=fr-CA FILE=scratch/todo.json. A message the build's parity check rejects is refused with the reason and its entry keeps its text; correct it and run the same command again, which leaves what it already wrote as it is. An entry whose English changed after the list was made is refused too: list it again withmake ui-i18n-todo. - When the French cannot be written in this change, delete the stale entries, and
any dead ones, instead, so the English shows:
make ui-i18n-drop-stale LOCALE=fr-CA. A missing translation never fails a job. make check-ui-i18n-catalogpasses;make ui-i18n-coverageshows what is left.
Never edit fr-CA.json by hand, its sourceHash least of all, and do not use
make ui-i18n-translate (Amazon Translate) in this flow: its drafts lose the context
the screen gives you. When fr-CA.json conflicts in a merge because two changes
added entries side by side, keep both sides' entries as they are, which is a merge
and not an edit, then run make check-ui-i18n-catalog. If both sides changed the
same entry, keep neither: translate it again from make ui-i18n-todo.
Writing the French
The rules have one source:
STYLE_RULESinscripts/ui_i18n_review.pyandREVISE_RULESinscripts/ui_i18n_revise.py, the rules the Bedrock review and revise tools give their model. Read them before you write:python3 -c 'import sys; sys.path.insert(0, "scripts"); import ui_i18n_review as r, ui_i18n_revise as v; print("STYLE_RULES:", r.STYLE_RULES["fr-CA"], "REVISE_RULES:", v.REVISE_RULES["fr-CA"], sep="\n")'Write ordinary spaces before punctuation:
ui-i18n-ingestputs in the no-break spaces those rules ask for.- The glossary is binding.
glossary.fr-CA.csv(en,fr-CA,note) gives the French for each English term; use it. A product term the change introduces gets its row in the same change. The file holds names and nouns only, never verbs, as Drafting a translation explains. - Keep the ICU. Every argument, plural, select and rich-text tag of the English
stays, with its branch keys; only the text around and inside them is translated.
ui-i18n-ingestrefuses a missing or extra argument or tag, or an argument of another kind, in the build's wording. It does not compare plural or select branch keys, so keep those yourself.
Reviewing a change's translations
Read the diff under src/ui/src/i18n/ beside the English each entry translates, and
flag:
- English added or edited in
en.jsonwith no matching change infr-CA.jsonand nomake ui-i18n-drop-stale; - a product term with no glossary row, or a glossary row that is a verb;
- English left in the French;
- a meaning the English does not have, or part of it lost;
- a term other than the glossary's;
- the wrong register (
tu, a familiar tone) or another region's usage, against the rules above; - an argument, plural, select or tag the French changed;
- text likely to be cut off where the English already fills its place, since French runs longer;
- an entry whose English changed but whose French did not (only its
sourceHashmoved): check that the French still says what the new English says.
The review is advisory. Only make check-ui-i18n-catalog blocks a merge: on a stale
entry, an entry the build rejects (for example a changed argument or tag), or a dead
one. A missing translation never does.
Before a release
prepare-changelog.md holds the catch-up before the cut and where the coverage figure goes, and release-validation.md and ux-test.md the run of the release's flows in French (Canada).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

