@openkit/language-codes
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-beta.6 • Public • Published

language-codes

Super quick start

// with pnpm
pnpm add  @openkit/language-codes

// with yarn
yarn add @openkit/language-codes

// with npm
npm add  @openkit/language-codes

Import and use it

import languageCodes from '@openkit/language-codes';

console.log(languageCodes.ES_MX.langCode);
// {
//   culture: 'es-MX',
//   langCode: 'es-MX',
//   displayName: 'Spanish (Mexico)'
// }

console.log(languageCodes.ES_MX.culture);
// 'es-MX'

console.log(languageCodes.ES_MX.displayName);
// 'Spanish (Mexico)'

console.log(languageCodes.ES_MX.langCode);
// 'es-MX'

thanks to @JamieMason for his reference https://gist.github.com/JamieMason/3748498

ref: https://datahub.io/core/language-codes#javascript

Package Sidebar

Install

npm i @openkit/language-codes

Weekly Downloads

9

Version

0.1.0-beta.6

License

MIT

Unpacked Size

263 kB

Total Files

11

Last publish

Collaborators

  • wootsbot