--- name: bpx-localization description: BPX `localization` command skill. Read/query/resolve localization data and edit existing text identities. --- # localization > **PREREQUISITE:** Read [bpx-shared](../bpx-shared/SKILL.md). ## Usage ```bash bpx localization read [--export ] [--include-history] [--format json|toml|csv] bpx localization query [--export ] [--namespace ] [--key ] [--text ] [--history-type ] [--limit ] bpx localization resolve [--export ] --culture [--locres ] [--missing-only] bpx localization set-source --export --path --value [--dry-run] [--backup] bpx localization set-id --export --path --namespace --key [--dry-run] [--backup] bpx localization set-stringtable-ref --export --path --table --key [--dry-run] [--backup] bpx localization rewrite-namespace --from --to [--dry-run] [--backup] bpx localization rekey --namespace --from-key --to-key [--dry-run] [--backup] ``` ## Behavior - `read`: enumerates TextProperty + GatherableTextData entries. - `query`: filters entries by namespace/key/text/history type. - `resolve`: previews localized strings for --culture (optional .locres). - `set-source`/`set-id`/`set-stringtable-ref`: updates existing text data. - `rewrite-namespace`/`rekey`: bulk-rewrites namespace or key values. - `resolve --missing-only` returns unresolved entries only. > [!CAUTION] > This command includes write-capable operations. Confirm intent and run `--dry-run` first. ## Command Matrix | Command | Use when | Notable defaults | |------|------|------| | `read` | enumerates TextProperty + GatherableTextData entries. | Read-only path; safe for discovery. | | `query` | filters entries by namespace/key/text/history type. | Check `bpx help` for exact required flags. | | `resolve` | previews localized strings for --culture (optional .locres). | Check `bpx help` for exact required flags. | | `set-source` | `read`: enumerates TextProperty + GatherableTextData entries. | Run `--dry-run` first and use `--backup` for real writes. | | `set-id` | `read`: enumerates TextProperty + GatherableTextData entries. | Run `--dry-run` first and use `--backup` for real writes. | | `set-stringtable-ref` | `read`: enumerates TextProperty + GatherableTextData entries. | Run `--dry-run` first and use `--backup` for real writes. | | `rewrite-namespace` | `read`: enumerates TextProperty + GatherableTextData entries. | Run `--dry-run` first and use `--backup` for real writes. | | `rekey` | `read`: enumerates TextProperty + GatherableTextData entries. | Run `--dry-run` first and use `--backup` for real writes. | ## Code-Aligned Caveats - `resolve` is read-preview oriented; it does not mutate assets. - Bulk namespace/key rewrites should always be previewed first in a narrowed scope. ## High-Signal Examples ```bash bpx localization read ./Sample.uasset [--export 1] [--include-history] [--format json|toml|csv] bpx localization query ./Sample.uasset [--export 1] [--namespace Game] [--key ] [--text SampleToken] [--history-type ] [--limit 1] bpx localization resolve ./Sample.uasset [--export 1] --culture en [--locres MyProperty] [--missing-only] bpx localization set-source ./Sample.uasset --export 1 --path MyProperty --value [--dry-run] [--backup] ```