sonenta-source-health
Source-string health. Cleans up duplicate source strings (the same text behind several keys).
When to use it
Section titled “When to use it”The dashboard flags duplicate-source groups, or you want to consolidate redundant keys.
What it produces
Section titled “What it produces”- A merge plan per group: consolidate the redundant keys onto a canonical key, or create a brand-new canonical key. Always proposed first, applied only on your acceptance.
- Code repoints: it updates the
t()usages onto the surviving key and soft-deletes (trashes, restorable) the redundant ones - never editing a source value. - An audit trail of the code it changed (found key, replacement key, files).
- Placeholder-mismatch repair: rewrites translations whose interpolation variables drifted from the source.
In the dashboard
Section titled “In the dashboard”Duplicate groups move to_fix → resolved; the recorded merge plan + the modified files show in the Resolved detail. It can also read and apply an AI-proposed plan ("Let AI decide") generated in the dashboard.
Useful prompts
Section titled “Useful prompts”Using sonenta-source-health, resolve my duplicate source strings step by step.
Apply the merge plan I approved in the dashboard.
Consolidate these onto a new canonical key called brand.sonenta.
Fix the translations whose placeholders no longer match the source.