Remove Target tool
The Remove Target tool deletes target segments from blocks. With a target locale set, it removes only that locale's targets; with no locale, it removes all targets. It is useful for resetting translations before a fresh run, or for clearing targets in a specific locale.
Removal can be scoped to specific text units by ID, which restricts the operation to a comma-separated list of block IDs. Optionally, a block whose targets are all removed can itself be dropped from the stream.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
filterByIDs | boolean | true | Når sann filtreres tekstenheter etter ID; når usann filtreres de etter målspråk |
removeBlockIfEmpty | boolean | false | Fjern tekstenheten helt hvis den ikke har gjenværende mål etter fjerning |
targetLocale | string | Målspråk som skal fjernes (hvis tomt fjernes alle mål) | |
textUnitIDs | string | Kommaseparert liste over tekstenhets-IDer hvis mål skal fjernes; tom fjerner alle mål |
Configure it live
Configuration
Loading form…
Examples
Clear one locale's targets
Remove the French targets from every block.
targetLocale: fr
Remove targets for selected text units
Restrict removal to specific block IDs.
filterByIDs: true
textUnitIDs: "intro.title, intro.body"
Processing notes
Operates on translatable blocks only; non-translatable blocks pass through unchanged.
← Back to the Tool Reference