# useFormatMessage

Formats a core `Message` (a key and its parameters) with the active
catalogue, for text a component shows or hands on as a string. The function
is stable while the catalogue is.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useFormatMessage } from "@mapcairn/map";
 
function useFormatMessage(): (message: Message) => string;
```

## Returns

`(message: Message) => string`

## See also

- [`Message`](https://docs.mapcairn.com/api/core/Message-typealias.md)

Source: [packages/map/src/services/hooks.ts:168](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L168)
