resolveText
The words a person reads for a definition's text. A basemap or layer
definition writes such a field as a MessageKey, a HostText
or a plain string: a key is looked up in catalogue, a host key is
translated from catalogue.definitionTexts with its source text as the
fallback, and anything else, including a third-party definition's own
English, is returned unchanged. A key that takes parameters is not meant
for a definition, so none are passed.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { resolveText } from "@mapcairn/core";
function resolveText(catalogue: MessageCatalogue, text: DefinitionText): string;
Parameters
catalogue(MessageCatalogue)text(DefinitionText)
Returns
string