Skip to content
GitHub

LocalizationParam

type alias in meocord/common Since 4.3.0

type LocalizationParam = string | number | ((locale: Locale) => string | number)

A value Translator.localizations fills into a {param}: a word or a number, the same in every locale, or a function of the locale for a value that is itself translated.

Either is used as written: a {param} in it stays as text, as t() leaves it.

See also