anylang
Version:
A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs
17 lines (16 loc) • 556 B
TypeScript
/**
* Check is string are 639-1 lang code
*
* Values are case sensitive, if you need, you have to convert strings to lower case to check
*/
export declare const isLanguageCodeISO639v1: (code: string) => boolean;
/**
* Check is string are 639-2 lang code
*
* Values are case sensitive, if you need, you have to convert strings to lower case to check
*/
export declare const isLanguageCodeISO639v2: (code: string) => boolean;
/**
* Return subset of ISO-639 lang codes
*/
export declare const getLanguageCodesISO639: (set: "v1" | "v2") => string[];