Skip to content

feat: add shortTitle to alarm capabilities#692

Open
HarwinBorger wants to merge 2 commits into
developfrom
feature/alarm-short-titles
Open

feat: add shortTitle to alarm capabilities#692
HarwinBorger wants to merge 2 commits into
developfrom
feature/alarm-short-titles

Conversation

@HarwinBorger
Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional i18n shortTitle field to all 43 alarm_*.json capability files (assets/capability/capabilities/).
  • Declares shortTitle in assets/capability/schema.json as an optional i18nObject (no required change — capabilities without it still validate).
  • Translations are provided for every language present in the capability's existing title, with the localized "alarm" token stripped (e.g. Motion AlarmMotion, Bin Full AlarmBin Full, Pump Supply Fault AlarmPump Supply Fault).

Test plan

  • npm test — all 128 tests pass
  • All 43 alarm_*.json files parse as valid JSON
  • Localization team review for non-English short titles (mechanical strip can produce slightly awkward Polish/Russian/Korean genitive forms — flagging for human review before release)

🤖 Generated with Claude Code

Adds an optional i18n shortTitle field to all 43 alarm_*.json capability
files and declares it in the capability schema. The shortened form drops
the localized "alarm" word so UI surfaces with limited space can show
e.g. "Motion" instead of "Motion Alarm".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants