type Language = Record; export declare const data: Record; /** * Returns a translated string in the current language * @param string Translation key * @param variables Array of variables that replace anchors (%0, etc.) in the translation. Items can be strings or anything that can be converted to strings * @param default_value String value to default to if the translation is not available */ export declare const tl: (string: string, variables?: string | number | (string | number)[], default_value?: string) => string; export declare const translateUI: () => void; export declare const Language: { /** * Translation data for the current language */ data: {}; /** * Language code indicating the currently selected language */ code: string; options: { en: string; ar: string; cz: string; de: string; es: string; fr: string; it: string; ja: string; ko: string; nl: string; pl: string; pt: string; pt_br: string; ru: string; sv: string; th: string; tr: string; uk: string; vi: string; zh: string; zh_tw: string; }; /** * Add translations for custom translation strings * @param language Two letter language code, e. G. 'en' * @param strings Object listing the translation keys and values */ addTranslations(language: string, strings: Record): void; toString: () => string; }; declare const global: { tl: (string: string, variables?: string | number | (string | number)[], default_value?: string) => string; Language: { /** * Translation data for the current language */ data: {}; /** * Language code indicating the currently selected language */ code: string; options: { en: string; ar: string; cz: string; de: string; es: string; fr: string; it: string; ja: string; ko: string; nl: string; pl: string; pt: string; pt_br: string; ru: string; sv: string; th: string; tr: string; uk: string; vi: string; zh: string; zh_tw: string; }; /** * Add translations for custom translation strings * @param language Two letter language code, e. G. 'en' * @param strings Object listing the translation keys and values */ addTranslations(language: string, strings: Record): void; toString: () => string; }; }; declare global { const Language: typeof global.Language; const tl: typeof global.tl; } export {};