Builds a typed message catalog from a set of MessageEntry definitions.
Each key in definitions becomes a factory function that creates a LocalizedMessage pre-filled with the right translations and default locale.
definitions
Default locale and message definitions.
An object whose keys mirror definitions, each a factory function.
Builds a typed message catalog from a set of MessageEntry definitions.
Each key in
definitionsbecomes a factory function that creates a LocalizedMessage pre-filled with the right translations and default locale.