UNPKG

rashi-discord-bot-lib

Version:

🚀 Powerful Discord bot framework with built-in database, event handling, and utilities

20 lines • 1.09 kB
import i18next from 'i18next'; import { Interaction } from 'discord.js'; export declare function initializeI18n(): Promise<void>; /** Skrócony alias */ export declare function t(key: string, options?: any): string; export declare function isInitialized(): boolean; export declare function getDefaultLanguage(): string; export declare function getAvailableLanguages(): string[]; export declare function getLanguageFromInteraction(interaction: Interaction): string; export declare function getLocalesPath(): string; export declare function setLanguage(language: string): void; export declare function setGuildLocale(guildId: string, locale: string): void; export declare function getGuildLocale(guildId: string): string; export declare function clearGuildLocale(guildId: string): void; export declare function setUserLocale(userId: string, locale: string): void; export declare function getUserLocale(userId: string): string; export declare function clearUserLocale(userId: string): void; export declare const availableLocales: string[]; export { i18next }; //# sourceMappingURL=index.d.ts.map