/laravel:fix-translationsfrom laravel
Use this skill to find, fix, or translate source-language values in the Laravel translation files of a project — the PHP arrays under `lang/{locale}/` and the JSON catalogues `lang/{locale}.json`. Scans them for untranslated values, translates them to the target language, fixes errors and typos, commits the changes, and opens a PR. Laravel-specific: it preserves `|` plural syntax, `:placeholder` tokens and Blade fragments, and never translates array keys or JSON source keys.
Ships in laravel. 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.
Scan all {{TARGET_LANGUAGE}} Laravel translation files for values still in the source language, translate them, fix errors and typos, commit the changes, and open a PR.
{{REPOSITORY}}lang/{{TARGET_LOCALE}}/**/*.php and lang/{{TARGET_LOCALE}}.json
(older projects: resources/lang/...){{PR_TITLE_PREFIX}}: <short description>Execute these phases in order. Never dead-end (see the autonomous-execution skill of the code
plugin): a value whose translation stays unclear after using its context is left as it is and listed
in the PR body, and the rest of the work carries on.
Read every file matching {{TRANSLATION_FILES_SCAN}} — when that is not supplied, scan
lang/{{TARGET_LOCALE}}/**/*.php and lang/{{TARGET_LOCALE}}.json (fall back to
resources/lang/... on older Laravel versions). For each file, identify values that are still in
the source language. A value needs translation if it:
Do not flag:
'Logo', 'URL'):count, :nameFor each identified value, produce the correct {{TARGET_LANGUAGE}} translation. Apply these rules:
| syntax must be preserved: '{\1'}in :count day|[2,*]in :count days' → translate each segment, keep the | syntax intact.:placeholder tokens (:count, :name, :Name, :NAME) — the casing
carries Laravel's capitalisation behaviour, so copy them through verbatim.{{ $var }}, @lang(...), <a href="...">)
— translate only the surrounding prose.Edit each file directly using precise string replacements. Do not reformat or reorder any surrounding code.
Stage all modified translation files by name (never git add -A). Commit with a single subject line:
Translate remaining source-language strings in {{TARGET_LANGUAGE}} translation files
Invoke the create-pr skill to push the branch and open the PR. It runs ci-green-check, which
hands off to php-checks (from the php plugin) for this project's PHP tooling — translation files are checked by
composer:script:checkstyle (phpcs) too, so let that run rather than skipping it.
Provide the following title and body:
PR title (required — CI will fail without it):
{{PR_TITLE_PREFIX}}: Translate remaining source-language strings in {{TARGET_LANGUAGE}} translation files
{{PR_TITLE_EXAMPLE}}{{PR_TITLE_PREFIX_ZERO}}PR body:
## Summary
- Translated remaining source-language strings in {{TARGET_LANGUAGE}} translation files
## Test plan
- [ ] Verify translations look correct in the UI
git add -A or git add . — stage only the translation files that were actually modified.{{PR_TITLE_PREFIX}}: (with colon and space).=>) are ever changed.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub specsnl/agent-skills --plugin laravel