Skip to content
mercury framework
GitHub

ChannelI18n

ChannelI18n = object

Defined in: types/channel-types/index.ts:327

The texts a channel shows a person itself (a card’s title, a button, a login page), in their language: the person’s own when principal is someone the core knows and they saved one, else the channel’s hint (an Accept-Language value), else the instance’s default. null for a request with no principal (a login page): the hint, then the default.

forRequest: (principal, hint?) => Promise<RequestTexts>

Defined in: types/channel-types/index.ts:327

Principal | null

string

Promise<RequestTexts>