mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-04 02:46:35 -06:00
## Summary Removes the automated cleanup tooling for unused localization strings. The detection script and CI checks remain to identify unused strings, but removal is now a manual process. **Deleted:** - `Tools/remove_unused_strings.py` - Script that removed unused strings from all `Localizable.strings` files - `.github/workflows/clean_unused_strings.yml` - Monthly workflow that created automated cleanup PRs **Updated:** - `Tools/README.md` - Removed `remove_unused_strings.py` documentation - `UNUSED_STRINGS.md` - Removed removal script and workflow documentation; renamed to focus on detection only - `.github/workflows/ci.yml` - Updated PR comment to suggest manual cleanup instead of referencing removed script The `detect_unused_strings.py` script and CI integration continue to function unchanged. ## Screenshots N/A - No user-facing changes ## Link to pull request in Documentation repository Documentation: home-assistant/companion.home-assistant# ## Any other notes Detection of unused strings remains automated via CI checks on pull requests. Only the removal automation has been eliminated. <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > Delete remove_unused_strings.py and workflow </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bgoncal <5808343+bgoncal@users.noreply.github.com>
37 lines
981 B
Markdown
37 lines
981 B
Markdown
# Tools Directory
|
|
|
|
This directory contains scripts and tools used for development and maintenance of the Home Assistant iOS app.
|
|
|
|
## Python Scripts
|
|
|
|
### detect_unused_strings.py
|
|
|
|
Detects unused localization strings in the codebase.
|
|
|
|
**Usage:**
|
|
```bash
|
|
python3 Tools/detect_unused_strings.py
|
|
```
|
|
|
|
**What it does:**
|
|
1. Parses `Sources/Shared/Resources/Swiftgen/Strings.swift` to extract all L10n properties and their corresponding Localizable keys
|
|
2. Checks for usage of L10n properties in Swift source code
|
|
3. Double-checks for direct usage of Localizable keys in the codebase
|
|
4. Reports unused strings that can be safely removed
|
|
|
|
**Exit codes:**
|
|
- `0`: No unused strings found
|
|
- `1`: Unused strings detected (normal for reporting)
|
|
|
|
## Shell Scripts
|
|
|
|
### BuildMaterialDesignIconsFont.sh
|
|
|
|
Builds the Material Design Icons font file from the icon definitions.
|
|
|
|
## Stencil Templates
|
|
|
|
### icons.stencil
|
|
|
|
SwiftGen template for generating Swift code from Material Design Icons JSON data.
|