gather_text_for_target
Collect source text into an Unreal localization target's manifest and archive files by generating and running its GatherText configuration for translation preparation.
Instructions
Gather text into a localization target's manifest/archive files, by generating its GatherText commandlet config (LocalizationConfigurationScript::GenerateGatherTextConfigFile) and running it in-process (UGatherTextCommandlet::Execute) -- the same pipeline the Localization Dashboard's "Gather Text" button drives.
Returns: { target_name: string, scope: string, config_path: string, config_written: bool, exit_code: int, success: bool, message: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Optional: "engine" | "game". Disambiguates a same-named target in both sets; defaults to searching both. | |
| target_name | Yes | Required. Target name, as listed by list_localization_targets. |