Skip to main content

Crate rimloc_parsers_xml

Crate rimloc_parsers_xml 

Source

Functions§

parse_po_string
Parse a minimal subset of PO syntax used across the workspace. Supports single-line msgid/msgstr pairs and optional reference lines (#: ...).
scan_keyed_xml
Very small XML scanner for RimWorld “Keyed” XML files. It walks root and finds files that match */Languages/*/Keyed/*.xml. For every <Key>Value</Key> pair found, it produces a TransUnit with the key name, text value, file path and (approximate) line number.