linguee-client
Version:
A simple node.js Linguee client.
17 lines (16 loc) • 655 B
TypeScript
export type LangCode = 'EN' | 'DE' | 'FR' | 'ES' | 'ZH' | 'RU' | 'JA' | 'PT' | 'IT' | 'NL' | 'PL' | 'SV' | 'DA' | 'FI' | 'EL' | 'CS' | 'RO' | 'HU' | 'SK' | 'BG' | 'SL' | 'LT' | 'LV' | 'ET' | 'MT';
export declare class UnrecognizedLangError extends Error {
message: string;
}
export declare class Lang {
private static langsDict;
private static availableTranslations;
static isLangCode(lang: LangCode | string): lang is LangCode;
private static normalizeLangCode;
static available(rootLang?: string): LangCode[];
static get(langCode: string): {
code: LangCode;
name: string;
} | null;
}
export default Lang;