Index of every page on this site: llms.txt
All skills
devolutions avatar

/translation-diff-export

@bb42035
by devolutionsdevolutions/unigetui27k stars
991
Run it yourself

Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language. Use when the user asks to export missing translations, untranslated strings, i18n diffs, or locale-file changes.

Use this Skill: https://skilld.dev/gh/devolutions/unigetui/translation-diff-export

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈78 tokens for metadata: the name and description. ≈973 when used: this file.

Description uses 3.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈312 characters, or 3.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

translation diff export

Use this skill when you need a small UniGetUI translation patch instead of sending a full language JSON file for review or translation.

It exports only the active untranslated or source-changed strings, creates the translator handoff files, and prepares the patch set needed by translation-diff-translate and translation-diff-import.

Prerequisites

  • PowerShell 7 (pwsh).
  • git available on PATH.
  • cirup available on PATH.

When source strings changed, run translation-source-sync first so lang_en.json reflects current source usage before exporting downstream translation patches.

Scripts

  • scripts/export-translation-diff.ps1: Exports JSON patch artifacts and generates a translation handoff prompt.
  • scripts/test-translation-diff.ps1: Runs a local end-to-end smoke test against the checked-in UniGetUI language files.

Use this skill's wrapper scripts first; the downstream translate and import steps are documented in translation-diff-translate and translation-diff-import.

Usage

Export untranslated French strings only:

pwsh ./.agents/skills/translation-diff-export/scripts/export-translation-diff.ps1 \
  -NeutralJson ./src/Languages/lang_en.json \
  -TargetJson ./src/Languages/lang_fr.json \
  -Language fr

Export untranslated French strings plus English source values changed since origin/main:

pwsh ./.agents/skills/translation-diff-export/scripts/export-translation-diff.ps1 \
  -NeutralJson ./src/Languages/lang_en.json \
  -TargetJson ./src/Languages/lang_fr.json \
  -Language fr \
  -BaseRef origin/main

Optional parameters:

  • -OutputDir (default: generated/translation-diff-export)
  • -KeepIntermediate

Run the built-in smoke test:

pwsh ./.agents/skills/translation-diff-export/scripts/test-translation-diff.ps1

Output

For lang_en.json and language fr, the script generates:

  • generated/translation-diff-export/lang.diff.fr.source.json
  • generated/translation-diff-export/lang.diff.fr.translated.json
  • generated/translation-diff-export/lang.diff.fr.reference.json
  • generated/translation-diff-export/lang.diff.fr.prompt.md

If -KeepIntermediate is used, git-baseline snapshots are kept under generated/translation-diff-export/tmp/.

The smoke test writes its temporary artifacts under generated/translation-diff-export-demo/.

Validate The Export

After export, confirm the patch is usable before handing it off:

  1. Check that .source.json is not empty unless you expected no work for that language.
  2. Confirm .translated.json is sparse and does not contain copied English placeholders for unfinished keys.
  3. If the patch should include recent English changes, rerun with -BaseRef and compare the resulting .source.json.
  4. Run the smoke test if you changed the export workflow itself.

Hand Off To Translate

After exporting the patch, use the generated .prompt.md file with translation-diff-translate to update the sparse translated working copy.

Hand Off To Import

After translating the patch, merge it back into the full language file with translation-diff-import:

pwsh ./.agents/skills/translation-diff-import/scripts/import-translation-diff.ps1 \
  -TranslatedPatch ./generated/translation-diff-export/lang.diff.fr.translated.json \
  -SourcePatch ./generated/translation-diff-export/lang.diff.fr.source.json \
  -TargetJson ./src/Languages/lang_fr.json \
  -NeutralJson ./src/Languages/lang_en.json \
  -OutputJson ./src/Languages/lang_fr.merged.json

Keep the .translated.json file sparse. If a key is not translated yet, leave it out instead of copying the English source value into the working copy.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The translation-diff-export skill automates the identification of missing translations in UniGetUI locale files using Git and the Cirup CLI. It generates patch files and a markdown prompt for AI-assisted translation. The skill is generally safe for development use but is flagged for a low-risk indirect prompt injection surface where locale strings are interpolated into prompts without sanitization.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at bb42035. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 7 months ago

README badge

README badge for devolutions/unigetui/translation-diff-export