Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
translate
joelstein/laravel-t
claude-code
localization
i18n
po-files
translations
artisan-commands
icu-plurals

Translate untranslated strings in PO files. Activates when translating strings, working with PO files, running t:extract or t:untranslated, or when the user mentions translations, i18n, locales, or untranslated strings.

Install
php artisan boost:add-skill joelstein/laravel-t

Save this content to: .claude/skills/translate/SKILL.md

# Translate Untranslated Strings

## When to Apply

Activate this skill when:

- Translating untranslated strings in PO files
- Running `t:extract` or `t:untranslated` commands
- Working with localization or i18n tasks
- The user asks about translation status or coverage

## Workflow

1. Run `php artisan t:extract` to extract strings from source files.

2. Run `php artisan t:untranslated` to see which strings need translation.

3. Work through ONE language at a time. For each language with untranslated strings:

   a. Read the PO file at the path configured in `config/t.php` (default: `lang/t/{locale}.po`)

   b. Find all entries where `msgstr` is empty

c. Translate each `msgid` to the target language, preserving:
      - All placeholders (`:name`, `{param}`, etc.)
      - ICU plural syntax (`{count, plural, ...}`)
      - HTML entities if present

   d. Update the PO file with the translations using the Edit tool

   e. Run `php artisan t:untranslated {locale}` to verify the count decreased

4. After completing each language, move to the next one.

## Important Notes

- Do NOT translate the source locale file (typically `en`) — it is the source of truth
- Keep translations natural and idiomatic for each language
- For ICU plurals, translate the text inside the braces but keep the ICU syntax intact
- When in doubt about a translation, prefer clarity over literal translation

Translate Untranslated Strings

When to Apply

Activate this skill when:

  • Translating untranslated strings in PO files
  • Running t:extract or t:untranslated commands
  • Working with localization or i18n tasks
  • The user asks about translation status or coverage

Workflow

  1. Run php artisan t:extract to extract strings from source files.

  2. Run php artisan t:untranslated to see which strings need translation.

  3. Work through ONE language at a time. For each language with untranslated strings:

    a. Read the PO file at the path configured in config/t.php (default: lang/t/{locale}.po)

    b. Find all entries where msgstr is empty

c. Translate each msgid to the target language, preserving: - All placeholders (:name, {param}, etc.) - ICU plural syntax ({count, plural, ...}) - HTML entities if present

d. Update the PO file with the translations using the Edit tool

e. Run php artisan t:untranslated {locale} to verify the count decreased

  1. After completing each language, move to the next one.

Important Notes

  • Do NOT translate the source locale file (typically en) — it is the source of truth
  • Keep translations natural and idiomatic for each language
  • For ICU plurals, translate the text inside the braces but keep the ICU syntax intact
  • When in doubt about a translation, prefer clarity over literal translation
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource