@locale-tools/languages
v0.2.0
Published
World languages data
Downloads
177
Maintainers
Readme
@locale-tools/languages
List of all languages.
Installation
Install a given package with npm or yarn.
npm install @locale-tools/languages
yarn add @locale-tools/languages
Usage
A full list of all documented languages can be found in src/data/languages.json
.
import { languages } from "@locale-tools/languages";
Types
type Language = {
name: {
common: string;
native: string | null;
alternates?: string[];
};
iso639_3: ISO639_3;
bcp47: BCP47;
iso15924: ISO15924;
iana: string[];
countries?: ISO3166_1_Alpha2;
isExtinct: boolean;
isSpurious: boolean;
};
// ISO639-3 language codes
enum ISO639_3 {}
ISO639_3.eng; // "eng"
// BCP47 language tags
enum BCP47 {}
BCP47.abq_Cyrl; // "abq-Cyrl"
// ISO15924 codes
enum ISO15924 {}
ISO15924.cyrl; // "Cyrl"