diff --git a/.agents/docs/FUNCTIONS.md b/.agents/docs/FUNCTIONS.md new file mode 100644 index 0000000..be5d631 --- /dev/null +++ b/.agents/docs/FUNCTIONS.md @@ -0,0 +1,4 @@ +- **Localization quality gate** — reviews pull requests for duplicated translation keys in iOS/Mac string files. + - **Duplicate detection** — scans added and modified localization string files in a change set and lists each duplicated key with its file, ignoring comments and blank lines. + - **Review reporting** — posts a file/key table of found duplicates as a comment on the code review when any duplicates exist. + - **Programmatic access** — exposes the raw list of duplicate entries so review scripts can apply their own rules. diff --git a/.agents/docs/INTERACTIONS.yml b/.agents/docs/INTERACTIONS.yml new file mode 100644 index 0000000..66bc725 --- /dev/null +++ b/.agents/docs/INTERACTIONS.yml @@ -0,0 +1,5 @@ +--- +internal_calls: {} +external_calls: {} +listens: {} +publishes: [] diff --git a/.agents/docs/service-card.yaml b/.agents/docs/service-card.yaml new file mode 100644 index 0000000..d46c931 --- /dev/null +++ b/.agents/docs/service-card.yaml @@ -0,0 +1,6 @@ +--- +name: danger-duplicate_localizable_strings +kind: libraries +domain: developer-tooling +description: | + A **code-review plugin** for the Danger review bot that guards **localization quality** in iOS and Mac projects. When a pull request touches **translation string files**, it detects **duplicated translation keys** and comments on the review with a table of the offending files and keys.