The message bundle format is a round-trip JSON format for exporting and importing message text (vanilla + expanded) with validation.
format (string): Identifies the bundle format.version (int): Format version. Current: 1.counts (object): Optional counts for each bank.messages (array): Message entries.Required fields:
id (int): Message index within the bank.bank (string): vanilla or expanded.raw, text, or parsed must be present when importing.Optional fields:
address (int): ROM address (for reference only).raw (string): Tokenized message text (recommended for import).parsed (string): Expanded text with dictionary tokens replaced.text (string): Alternative alias for raw.length (int): Encoded byte length.line_width_warnings (array): Export-time diagnostics.raw is preferred; if missing, text or parsed will be used.[1], [2], [3], [V], or [K].Export:
Import (validate only):
Import with strict validation (non-zero exit on parse errors):
Import and apply to ROM: