Adding Translations
When to Apply
Activate this skill when:
- •Modifying language files such as
lang/es.jsonor any other language file in thelangdirectory. - •When the user mentions adding translations, updating language files, or working with localization in general.
Important Note
- •When adding new translations to
lang/es.jsonor any other language file, you must runphp artisan utils:ts-lang-keysto regenerate the TypeScript translation types. - •This ensures type safety for the translation keys in the frontend code.