Skip to content
Back to skills

Rhdh Translation Deploy

ASecurity

Downloads completed translations from TMS (Memsource), merges them into locale TypeScript files for rhdh-plugins and community-plugins (update matching keys only), merges backstage/community-plugins/rhdh JSON into rhdh/translations/, and prepares branches for PR creation with signed-off commits and changesets. Does not open a PR in the upstream backstage repo. Use for "deploy RHDH translations", "download translations from TMS", or "create translation PRs".

  • 21 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
toolstypescriptgonode

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add redhat-developer/rhdh-skill --skill rhdh-translation-deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rhdh Translation Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rhdh Translation Deploy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/redhat-developer-rhdh-translation-deploy/badge)](https://www.skillsdirectory.com/skills/redhat-developer-rhdh-translation-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rhdh-translation-deploy
description: >-
  Downloads completed translations from TMS (Memsource), merges them into
  locale TypeScript files for rhdh-plugins and community-plugins (update
  matching keys only), merges backstage/community-plugins/rhdh JSON into
  rhdh/translations/, and prepares branches for PR creation with signed-off
  commits and changesets. Does not open a PR in the upstream backstage repo.
  Use for "deploy RHDH translations", "download translations from TMS", or
  "create translation PRs".
compatibility: "Node 22+, translations-cli built in rhdh-plugins/workspaces/translations, memsource CLI, gh CLI for PRs, prettier in target repos, sibling clones of rhdh-plugins, rhdh, community-plugins, and backstage."
---

# RHDH Translation Deploy

Download translated files from TMS, merge into the right targets, and prepare
PRs.

## What goes where

| Source repo in TMS | Deploy target |
|--------------------|---------------|
| rhdh-plugins | In-place `.ts` merge in rhdh-plugins + changesets + PR |
| community-plugins | In-place `.ts` merge in community-plugins + changesets + PR; also JSON merge into `rhdh/translations/` |
| backstage | JSON merge into `rhdh/translations/backstage-{locale}.json` only — **no upstream backstage PR** |
| rhdh | JSON merge into `rhdh/translations/rhdh-{locale}.json` |

## Merge rules for `.ts` files

Do **not** use `translations-cli i18n deploy` — it rewrites files and removes
unchanged keys.

1. Load downloaded JSON for a plugin + locale.
2. Open the existing locale file (e.g. `de.ts`).
3. For each downloaded key: if it exists in the file → update the value; if
   not → skip.
4. Never remove keys. Never change imports/exports.
5. Strings containing an apostrophe use double quotes (`"..."`).
6. Run Prettier on changed files before commit.

No delta comparison and no `ref.ts` gate during merge. Keys developers add
after upload stay untouched.

## Subcommands

| Command | Description |
|---------|-------------|
| `preflight` | Check repos, tools, TMS credentials |
| `download` | Download completed jobs via translations-cli |
| `validate` | Basic JSON / structure checks on downloads |
| `update-translated-sot --sprint S` | Fix TMS `en` → real locale, merge into `rhdh/translations/`, PR on rhdh |
| `deploy` | In-place `.ts` merge for rhdh-plugins and community-plugins |
| `pr --sprint S` | Write changesets with real package names; report repos ready for `/mutation-gate` |

## Route

Load `workflows/download-and-deploy.md`.

## Boundary

- Extracting strings and uploading to TMS is `/rhdh-translation-upload`.
- Repository locations and branch context are `/rhdh-context`.
- External writes (creating PRs, pushing branches) go through `/mutation-gate`.

## Completion

Report per-repo: files changed, keys updated/skipped, changesets, and PR URLs
when created. Note that backstage has no upstream PR.

Files in this skill

  • SKILL.md2.8 KB
  • agents/openai.yaml143 B
  • scripts/_support.py17.6 KB
  • scripts/translation_deploy.py39.8 KB
  • workflows/download-and-deploy.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.