compile_text_for_target
Build runtime LocRes/LocMeta binaries for a localization target by generating and running its CompileText commandlet; gather text first to refresh the source archives.
Instructions
Compile a localization target's archives into runtime LocRes/LocMeta binaries, by generating its CompileText commandlet config (LocalizationConfigurationScript::GenerateCompileTextConfigFile) and running it in-process (UGatherTextCommandlet::Execute) -- the same pipeline the Localization Dashboard's "Compile Text" button drives. Run gather_text_for_target first so the archives are up to date.
Returns: { target_name: string, scope: string, culture_name: 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. | |
| culture_name | No | Optional. Restrict compilation to a single supported culture; omit to compile every supported culture. |