UNPKG

@kamuridesu/whatframework

Version:

A simple WhatsApp Bot Framework on top of Baileys

17 lines (16 loc) 403 B
import { TRANSLATIONS as ptbr } from "./locales/pt-bt.js"; import { TRANSLATIONS as enus } from "./locales/en-us.js"; const languages = { ptbr: ptbr, enus: enus, }; class Language { constructor(bot) { this.language = bot.language; this.TRANSLATIONS = languages[this.language.replace("-", "")]; } get() { return this.TRANSLATIONS; } } export { Language };