Skip to content

Elzair/node-lang-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-lang-info

Node.js module to retrieve current user's language

Installation

To install node-lang-info as a module into your project, type the following command.

npm install node-lang-info --save

Usage

Here is an example of how to use node-lang-info in your module

var lang_info = require('node-lang-info');

lang_info(function(err, lang) {
  if(err) {
    console.error(JSON.stringify(err, null, 2));
  }
  else {
    console.log('Current Locale: ' + lang);
  }
});

Requirements

About

Node.js module to retrieve current user's language

Resources

License

Stars

Watchers

Forks

Packages

No packages published