Skip to content

Home

This site contains documentation for the messageformat2, a Python library which implements the Unicode Message Format 2.0 specification.

Message Format 2.0 (MF2) is a new iteration of Message Format which aims to be more expressive and flexible than both Message Format 1.0 and, in the context of Python, gettext.

If you would like to learn more about MF2 itself head over to the Unicode technical specification.

Features

The messageformat2 library includes:

  • A message parser and a formatter
  • Several builtin formatters and selectors described by the spec and the possibility to write custom formatters/selectors
  • Helper classes to inspect and transform the message data model

Work in progress

  • Message extraction and loading - This will be provided once a format for MF2 message resources is standardized.