Name Description Size
__init__.py 242
from_json.py Marshal the JSON output of `moz.l10n.message.to_json()` back into a parsed `moz.l10n.message.data.Message`. May raise `MF2ValidationError`. 3498
parse.py Parse a `Message` from its string representation. Custom parsers are used for `android`, `fluent`, `mf2`, `properties`, `webext`, and `xliff` formats. `properties` and other formats not listed may include printf specifiers if `printf_placeholders` is enabled. Parsing a `webext` message that contains named placeholders requires providing the message's `webext_placeholders` dict. To parse an `xliff` message with XCode customizations, enable `xliff_is_xcode`. 3088
serialize.py Serialize a `Message` to its string representation. Custom serialisers are used for `android`, `fluent`, `mf2`, `properties`, `webext`, and `xliff` formats. Many formats rely on non-string message parts including an appropriate `source` attribute. SelectMessage serialization is only supported for `fluent` and `mf2`. 3065
to_json.py Represent a Message as a JSON-serializable value. The JSON Schema of the output is provided as [schema.json](./schema.json). 3142