cmd-phoenix-convert-gettext
Installation
SKILL.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
- Use