# useMessages

The active message catalogue, for `t`/`plural`/`list` calls that look up
copy by key instead of writing it inline. With `Services.languages` it is
the language the person's setting, or else the browser's languages, resolve
to; the catalogue changes when either does, and keeps the previous one while
a lazily loaded language is still arriving. Without it, it is always
`Services.messages`.

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

## Signature

```ts
import { useMessages } from "@mapcairn/map";
 
function useMessages(): MessageCatalogue;
```

## Returns

`MessageCatalogue`

## See also

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

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