Skip to content
GitHub

MeoCordMessages

type alias in meocord/interface Since 4.1.0

type MeoCordMessages = typeof MEOCORD_MESSAGES['meocord']

MeoCord's own texts for users, in English, by key under meocord: usage replies, the built-in help, cooldown refusals, the fallback's answers and the default presenter's views.

Translate any of them by adding a meocord group to a catalog; a text a locale leaves out stays in English. A key MeoCord lacks, or a {param} its English text lacks, fails to compile.

Examples

TypeScript
const enUS = defineCatalog({ ping: 'Pong!' })
const id = {
  ping: 'Pong!',
  meocord: { usage: { heading: 'Cara pakai: {usage}', missing: '{param} belum diisi' } },
}
export const t = createTranslator({ default: 'en-US', locales: { 'en-US': enUS, id } })

See also

  • Localisation