gsmlg-dev/code-agent/cmd-phoenix-convert-gettext
Claude Code and agent skill by gsmlg-dev/code-agent
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Convert Phoenix app hardcoded text to use gettext with domain-based translations
Install
npx vskill@latest install gsmlg-dev/code-agent/cmd-phoenix-convert-gettextSKILL.md
In the Phoenix app at {{ web_dir }}, refactor all hardcoded text strings to use gettext with domain-based translation logic. Specifically:
Tasks
- Convert hardcoded strings in templates, views, and controllers to use gettext functions
- Organize translations by domain/context:
user- user account, profile, authentication related textadmin- admin panel, management, settings texterrors- error messages, validations, warningsnavigation- menus, links, breadcrumbs, page titlescommon- shared/general purpose text, buttons, actions
- Use appropriate gettext functions:
- Use
dgettext/2for domain-specific translations - Use
dgettext/3when interpolation is needed - Use
dngettext/4for pluralization
- Extract strings from:
- All
.exfiles (controllers, views, live views, components) - All
.heextemplates - Any JavaScript/TypeScript with user-facing text
Conventions
- msgids: Keep in English as the default language
- Imports: Add
import <AppName>Web.Gettextto modules that need it - Context comments: Add comments for ambiguous translations
- Interpolation: Use named parameters for dynamic content
Example Transformations
Templates (.heex)
Controllers
Views/Components
LiveViews
Additional Requirements
- Maintain structure: Preserve existing code formatting and functionality
- Ensure imports: Verify Gettext module is imported where needed
- Check configuration: Ensure the Gettext module is properly configured in the app
- Handle edge cases:
- Don't translate attribute names, IDs, or technical values
- Don't translate log messages unless user-facing
- Keep email addresses, URLs, and code examples untranslated
Focus Area
Work only within the {{ web_dir }} directory and its subdirectories.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/phoenix-tools/skills/cmd-phoenix-convert-gettext/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gsmlg-dev/code-agent/cmd-phoenix-convert-gettext)