Gå til hovedinnhold

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.

IDremove-target
SourceBuilt-in
CategoryText processing
Cardinalitybilingual
Requirestarget-language
Tagsl10n

Parameters

ParameterTypeDefaultDescription
filterByIDsbooleantrueNår sann filtreres tekstenheter etter ID; når usann filtreres de etter målspråk
removeBlockIfEmptybooleanfalseFjern tekstenheten helt hvis den ikke har gjenværende mål etter fjerning
targetLocalestringMålspråk som skal fjernes (hvis tomt fjernes alle mål)
textUnitIDsstringKommaseparert 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