Skip to content
GitHub

Translate

type alias in meocord/common Since 4.1.0

type Translate<C> = <K extends MessageKey<C>>(
  key: K,
  ...params: ParamsArgs<MessageAt<C, K>>
) => string

Translates a key into one locale's message.

The key and its params are type-checked against the default catalog.