Skip to content

sonenta-source-health

Source-string health. Cleans up duplicate source strings (the same text behind several keys).

The dashboard flags duplicate-source groups, or you want to consolidate redundant keys.

  • 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.

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.

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.