i18n
Skill4 starsChanged 57 days agoMITView on GitHub
Translation extraction + merge for a module. - Never overwrite existing translations. Sync adds new phrases, preserves existing values. Removed phrases move to a commented "obsolete" section, NOT deleted. - Placeholder consistency. %1, %2 count in source must match each target locale. Mismatches surface as findings. - CSV validity always. Output CSVs are UTF-8 and parseable by Magento's translation loader. - Magento CLI preferred. Use bin/magento i18n:collect-phrases when available; regex fallback otherwise. Invoke context. Capture Magento CLI availability. If Magento…
29 other projects use a version of this.
Adopted by
Most recently taken up by
- Quad4-Software/skillstheir own version, first seen Oct 3, 2026
- lobehub/lobehubtheir own version, first seen Oct 1, 2026
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Sep 28, 2026
- casoon/ai-agent-configtheir own version, first seen Sep 27, 2026
- dafaalz/agent-skillstheir own version, first seen Sep 22, 2026
- themusecatcher/ai-coding-kittheir own version, first seen Sep 15, 2026
Used with
Projects with it also use oss-pr, pr-automation and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
volovelySkillpr-fix
This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.
Also in 3 projects that use this
conorluddySkillstate-management
Cache management, configuration best practices, and progressive disclosure patterns for efficient context window usage. Use when working with large responses, optimizing token costs, or managing plugin state across operations.
Also in 4 projects that use this
MicrosoftSkillbump-version
Bump the VoxelPic version to a user-specified value. USE FOR: setting or updating the project version across all files that embed it. Applies to requests like 'bump version to X.Y.Z', 'set version', or 'update version'.
Also in 4 projects that use this
Svenja-devSkille2e-testing
Also in 5 projects that use this
- +2 more from CES-Ltd
Other versions29 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 29
- lobehub/lobehub★ 83ksame name
- iOfficeAI/AionUi★ 33ksame name
- d-kimuson/claude-code-viewer★ 1.3ksame name
- OpenClaudia/openclaudia-skills★ 706same name
- FerroxLabs/wayland★ 608same name
- TheBeardedBearSAS/claude-craft★ 106same name
- CES-Ltd/TitanX★ 48same name
- zzunkie/yardlet★ 17same name
- helderberto/agent-skills★ 16same name
- AI-Answer/Agent-Club★ 9same name
19 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- a11y-auditSkill
- admin-formSkill
- admin-listingSkill
- auditSkill
- breeze-adaptSkill
- breeze-compatSkill
- breeze-themeSkill
- cli-commandSkill
- contextSkill
- data-migrationSkill
- debugSkill
- deploySkill
- docsSkill
- eav-attributeSkill
- extension-pointSkill
- featureSkill
- fixSkill
- frontendSkill
- graphqlSkill
- indexerSkill
- lintSkill
- marketplaceSkill
- message-queueSkill
- module-createSkill
- perf-auditSkill
- releaseSkill
- remediateSkill
- reviewSkill
- securitySkill
- system-configSkill
- test-generateSkill
- triageSkill
- upgradeSkill
- webapiSkill
- widgetSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Magento CLI preferred: Use bin/magento i18n:collect-phrases when available.
- Distinctive: line 45
If Magento CLI available:
- Very specific: line 61
Run ${CLAUDE_SKILL_DIR}/scripts/merge-csv.sh <fresh.csv> <locale.csv> for each target locale.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magento 2 i18n
Translation extraction + merge for a module.
Core Rules
- Never overwrite existing translations. Sync adds new phrases, preserves existing values. Removed phrases move to a commented "obsolete" section, NOT deleted.
- Placeholder consistency.
%1,%2count in source must match each target locale. Mismatches surface as findings. - CSV validity always. Output CSVs are UTF-8 and parseable by Magento's translation loader.
- Magento CLI preferred. Use
bin/magento i18n:collect-phraseswhen available; regex fallback otherwise.
Workflow
Phase 0 — Context Resolution
Invoke context. Capture Magento CLI availability.
Phase 1 — Scope
Ask:
- Modules to extract from (default: all custom modules under
{vendor_lower}/). - Target locale(s) (default:
en_US+ all existing locale CSVs). - Behaviour for missing translations:
- Leave empty (default)
- Copy English string
- Machine-translate (requires API key in env)
Phase 2 — Extract
If Magento CLI available:
{ctx.magento_cli} i18n:collect-phrases {ctx.magento_root}/app/code/{Vendor}/{Module}/ -o /tmp/extract.csvOtherwise: regex scan via ${CLAUDE_SKILL_DIR}/scripts/extract.sh for:
__('text')and__("text")in PHP<label translate="true">text</label>in XML<item name="..." translate="true">text</item>in XML$t('text')in JSdata-bind="i18n: 'text'"in HTML
Phase 3 — Merge
Run ${CLAUDE_SKILL_DIR}/scripts/merge-csv.sh <fresh.csv> <locale.csv> for each target locale. The script
guarantees:
- Existing translations are preserved byte-for-byte.
- New phrases are appended at the end with empty translation columns.
- Phrases no longer in the fresh extraction are moved to
<locale>.obsolete.csvnext to the locale file. Obsolete phrases are NOT commented in-line — Magento's translation loader does not tolerate comments inside the CSV.
Phase 4 — Validate
Via ${CLAUDE_SKILL_DIR}/scripts/validate-csv.sh:
- Placeholder consistency:
%1count in source must match target. - Character encoding (UTF-8).
- CSV well-formedness (correct quoting, no embedded newlines in unquoted fields).
Phase 5 — Report
{output_root}/i18n/{Vendor}_{Module}-{date}.md:
- Phrases added per locale
- Translations missing per locale
- Placeholder mismatches per locale (if any)
- CSV validation results
Inputs
/i18n [--locales=en_US,de_DE,fr_FR] [--machine-translate] [--module=<Vendor>_<Module>] [--docs-root=<path>]--docs-root=<path> — output-root override; see "Output root" below.
Outputs
{ctx.magento_root}/app/code/{Vendor}/{Module}/i18n/{locale}.csv (updated)
{output_root}/i18n/{Vendor}_{Module}-{date}.md{output_root} defaults to .docs ({ctx.docs_root}), anchored at the project root, never
under {ctx.magento_root}, app/code, or a module dir. See the Artifact location rule in
context/SKILL.md.
Output root (--docs-root)
This skill accepts --docs-root=<path> (see
context/references/artifact-layout.md). When set, write the run report (and any
report artifacts) under <path>/i18n/; otherwise default to
{ctx.docs_root}/i18n/. feature passes this so a feature run's
reports collect under its folder.
Reference Files
references/extraction-patterns.md— all translatable patterns + extraction regex.references/csv-format.md— Magento CSV format rules.references/placeholder-rules.md—%1%2etc. consistency.references/machine-translation.md— provider integration (DeepL, Google, OpenAI).
Scripts
${CLAUDE_SKILL_DIR}/scripts/extract.sh— Magento CLI wrapper or regex fallback.${CLAUDE_SKILL_DIR}/scripts/merge-csv.sh— deterministic merge: preserves translations, appends new phrases, separates obsolete phrases to<locale>.obsolete.csv.${CLAUDE_SKILL_DIR}/scripts/validate-csv.sh— CSV well-formedness + placeholder check.
Acceptance Criteria
- Existing translations are never overwritten.
- Phrases removed from code are written to
<locale>.obsolete.csv, not commented in-line, and not deleted. - Placeholder mismatches between source and any locale are surfaced as findings.
- CSV files are valid (parseable by Magento's translation loader).
Related Skills
| Phase | Skill |
| 0 | context |
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.

