Skip to content

API: Translations API

Gorciu edited this page Nov 21, 2025 · 4 revisions

Translations API can customize all the texts made by the ReplyEmbed class. It is a successor of cfg.customization and able to customize texts not present in customization config.

API Types & Interfaces

  • TranslateableObject = {[key: string | number | symbol] : any} | any[];
  • Translateable = TranslateableObject | string | number;
  • ConfigTranslation = { input: string[] | string, output: string }

API Functions

  • (internal) translateString(what: string)
  • (internal) translateObj(what: T): T
  • (alias: t) function translate(what: Translateable): Translateable
  • (internal) function translatePatternToRegex(input: string): RegExp

Suggest a page in the issues.

Clone this wiki locally