Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

language-cultures

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

language-cultures

A ready-to-go language-cultures codes utility

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
318
decreased by-28.38%
Maintainers
1
Weekly downloads
 
Created
Source

Language-cultures

A ready-to-go language-cultures codes utility

npm version Alt text

$ npm install --save language-cultures
// import all the module
import languageCultures from 'language-cultures';

languageCultures.getLanguageName('en-US');

// or import the single functions
import { getLanguageName } from 'language-cultures';

getLanguageName('en-US')

API

It basically exports a few useful functions to list and describe language codes, complete with their respective cultures (e.g. the variants for each country in which is spoken), so for example en-US, it-IT, es-ES, ..

Here are the functions:

Functions (w/ example parameters)DescriptionOutput
listLanguageCodes()lists all the known language codes['af-ZA', 'ar-AE', 'ar-BH', 'ar-DZ', 'ar-EG', ..]
getLanguageName('en-US')describes the language'English - United States'
getLanguageCultures('en')lists all the language cultures of a given language['en-AU', 'en-BZ', 'en-CA', 'en-CB', 'en-GB', ..]
getCountryLanguages('CH')lists all the languages spoken in a country['de-CH', 'fr-CH', 'it-CH']

Contributors

Giovanni Frigo, Developer @Belka

License

language-cultures is Copyright (c) 2016 Belka, srl. It is free software, and may be redistributed under the terms specified in the LICENSE file. (TL;DR: MIT license)

About Belka

Alt text

Belka is a Digital Agency specialized in design, mobile applications development and custom solutions. We love open source software! You can see our projects or look at our case studies.

Interested? Hire us to help build your next amazing project.

www.belka.us

Keywords

FAQs

Package last updated on 21 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc