add-translation
Skill608 starsChanged 5 months agoMITView on GitHub
Add or update translation keys for i18n. Covers strings.json (primary source), en.json sync, and de.json German translations. Use when adding new log messages, UI strings, or updating existing translations.
Files
Adding a Translation
IMPORTANT: aiohomematic/strings.json is the primary source for all translation keys. The file translations/en.json is automatically synchronized from strings.json.
Step 1: Use Translation in Code
from aiohomematic import i18n
# In code (for log messages)
_LOGGER.info(i18n.tr("log.my.message.key", param=value))Step 2: Add to Translation Catalogs (in this order)
# Step 1: Add key to aiohomematic/strings.json (PRIMARY SOURCE)
{
"log.my.message.key": "My message with {param}"
}
# Step 2: Run sync script to copy to en.json
python script/check_i18n_catalogs.py --fix
# Step 3: Add German translation to translations/de.json
{
"log.my.message.key": "Meine Nachricht mit {param}"
}Step 3: Validate Translations
python script/check_i18n.py aiohomematic/ # Check usage in code
python script/check_i18n_catalogs.py # Check catalog syncKey Files
| File | Purpose |
aiohomematic/strings.json | Primary source for all translation keys |
aiohomematic/translations/en.json | Auto-synced from strings.json |
aiohomematic/translations/de.json | German translations (manual) |
script/check_i18n.py | Validate translation usage in code |
script/check_i18n_catalogs.py | Check catalog sync between files |
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- add-deviceSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

