# useResolveText

Reads a definition's text in the active language: a message key is looked
up in the catalogue, a plain string is returned as written (see
`resolveText`). 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 { useResolveText } from "@mapcairn/map";
 
function useResolveText(): (text: DefinitionText) => string;
```

## Returns

`(text: DefinitionText) => string`

## See also

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

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