| __init__.py |
|
337 |
- |
| from_json.py |
Marshal the JSON output of `moz.l10n.message.entry_to_json()`
back into a parsed `moz.l10n.model.Entry`.
May raise `MF2ValidationError`.
|
4128 |
- |
| 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`.
|
3106 |
- |
| serialize.py |
Serialize a `Message` or `Pattern` 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`.
|
3349 |
- |
| to_json.py |
Represent an Entry as a JSON-serializable value.
Returns the stringified entry id and a JSON object.
The JSON Schema of the output is provided as [entry.json](../../../../schemas/entry.json).
|
3943 |
- |