anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
14 lines (13 loc) • 475 B
TypeScript
export declare const createLanguageAliasesMap: (languages: string[]) => Record<string, string[]>;
export declare class LanguageAliases {
private readonly languagesList;
private readonly options;
private readonly simpleLanguages;
private readonly languagesMaps;
constructor(languagesList: string[], options?: {
map?: Record<string, string>;
});
getAll(): string[];
get(language: string): string | null;
private getMappedLanguage;
}