Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/iso639_1/mod.ts>LanguageCode

Type-safe ISO 639-1 language code (a.k.a. two-letter codes) for TypeScript
Latest
type alias LanguageCode
Re-export
import { type LanguageCode } from "https://deno.land/x/iso639_1@1.2.20090901/mod.ts";

The string literal type of all valid language codes. This type contains only the two-letter language codes defined in ISO 3166-1 with lower case.

You can narrow down the string type to this type using the following functions: isLanguageCode, parseLanguageCode, and validateLanguageCode.

definition: languageCodes[number]