AgentSkillsCN

adding-translations

为应用程序新增翻译内容。当修改语言文件(如 `lang/es.json`)时,或当用户提及新增翻译、更新语言文件,或从事本地化相关工作时,该技能便会自动激活。

SKILL.md
--- frontmatter
name: adding-translations
description: >-
  Adds new translations to the application. Activates when modifying language files
  (e.g., `lang/es.json`) or when user mentions adding translations, updating language files, or working with localization.

Adding Translations

When to Apply

Activate this skill when:

  • Modifying language files such as lang/es.json or any other language file in the lang directory.
  • When the user mentions adding translations, updating language files, or working with localization in general.

Important Note

  • When adding new translations to lang/es.json or any other language file, you must run php artisan utils:ts-lang-keys to regenerate the TypeScript translation types.
  • This ensures type safety for the translation keys in the frontend code.