From 08214cc367f312ffc65ce281dc0746f5e8158bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bajorek?= Date: Tue, 29 Sep 2026 12:56:59 +0200 Subject: [PATCH] Add service context for danger-duplicate_localizable_strings --- .agents/docs/FUNCTIONS.md | 4 ++++ .agents/docs/INTERACTIONS.yml | 5 +++++ .agents/docs/service-card.yaml | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 .agents/docs/FUNCTIONS.md create mode 100644 .agents/docs/INTERACTIONS.yml create mode 100644 .agents/docs/service-card.yaml 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.