mjijackson/grand — pull request #1 by mattijs (2013-12-05 21:57:08+00:00)
Title: Language generator

A random language code generator that outputs a language and region combination. Can be used to generate locales for instance.

```
var lang = grand.language();
// => nl-NL
```

Optionally a base language can be provided to set the base language for the region:

```
var lang = grand.language('en');
// => en-US
```

A data file with languages is included. This file is generated from the Unicode Consortium repository with the `scripts/fetch_languages.js` script.

I hope this is a usefull addition to grand, I ported it from a different project: https://github.com/mattijs/fabricator