/language-code

An interface with language codes following ISO 639-1 standard

Primary LanguageTypeScript

Language code

npm An interface with language codes following ISO 639-1 standard

Getting started

Install the package...

npm install language-code

Use in project:

import { languageCode } from 'language-code';
...

// Setting locale to English:
const locale = languageCode['en']
// or
const locale = languageCode.en

To be continued (..)