UNPKG

language-country-code

Version:

A library to convert language codes to country codes and vice versa.

7 lines (5 loc) 197 B
```typescript import { getCountryCode, getLanguageCode } from "language-country-code" const countryCode = getCountryCode("en") // "US" const languageCode = getLanguageCode("US") // "en" ```