manage-localization
Installation
SKILL.md
Manage Localization
When To Use
Use this skill for new translation keys, language file organization, admin copy, validation messages, and repeated user-facing text.
Inputs Needed
- Feature area, language scope, reuse needs, and message ownership.
Workflow
- Inspect existing language file structure and naming.
- Run
php artisan lang:publishbefore adding app-owned language files if they do not already exist. - Place app-owned translation files under the project’s chosen app namespace, such as
lang/admin/**. - Centralize repeated strings into shared keys where practical.
- Keep validation messages close to the feature or contract they support.
- Use localized labels in Blade, Filament, Livewire, Requests, and notifications.
- Add tests when a translation key is part of a behavior contract.