__init__.py |
|
475 |
from_json.py |
Marshal a MessageFormat 2 data model [JSON Schema](https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json)
object into a parsed `moz.l10n.message.data.Message`.
May raise `MF2ValidationError`.
|
5844 |
message_parser.py |
Parse MF2 message syntax into a Message.
May raise `MF2ParseError`.
|
14548 |
serialize.py |
Serialize a message using MessageFormat 2 syntax.
Does not validate the message before serialization;
for that, use `mf2_validate_message()`.
|
4267 |
to_json.py |
Represent a message using the MessageFormat 2 data model [JSON Schema](https://github.com/unicode-org/message-format-wg/blob/main/spec/data-model/message.json).
Does not validate the message; for that, use `mf2_validate_message()`.
|
4161 |
validate.py |
Validate that the message satisfies MessageFormat 2 validity constraints.
May reorder declarations.
May raise `MF2ValidationError`.
|
8869 |