-
Notifications
You must be signed in to change notification settings - Fork 1
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.
- TranslateableObject = {[key: string | number | symbol] : any} | any[];
- Translateable = TranslateableObject | string | number;
- ConfigTranslation = { input: string[] | string, output: string }
- (internal) translateString(what: string)
- (internal) translateObj(what: T): T
- (alias: t) function translate(what: Translateable): Translateable
- (internal) function translatePatternToRegex(input: string): RegExp
Made with ❤️ by Eclairbakery
Suggest a page in the issues.