Skip to content
mercury framework
GitHub

Translate

Translate = (key, params?) => string

Defined in: types/plugin-types/index.ts:45

A text in the language of the person a turn is for, by key, with its params filled in. A key the language’s file lacks comes back as the key itself. The core hands one to whatever builds a text a person sees; the core’s own keys (core.…) are always there.

string

Params

string