rvagg/workshopper — pull request #51 by fundon (2014-04-28 22:51:38+00:00)
Title: Feature mulit langs for workshopper (WIP) 

![mulit-langs-workshopper](https://cloud.githubusercontent.com/assets/27926/2823905/468df028-cf27-11e3-9620-a6c5f609763c.gif)

## Details:

### Directory Structure
```
exercises/
exercises_zh-CN/
exercises_fr/
...
```
### An Exercises structure
```
exercises
├── help.txt
├── locale.js
├── menu.json
...
```

### Every Exercises dir has a `locale.js` file.
```js
const path = require('path')

function fpath (f) {
return path.join(__dirname, f)
}

module.exports = {
name : 'learnyounode'
, menu : require('./menu')
, title : 'LEARN YOU THE NODE.JS FOR MUCH WIN!'
, subtitle : '\x1b[23mSelect an exercise and hit \x1b[3mEnter\x1b[23m to begin'
, helpFile : fpath('help.txt')
}

```

### Storing the `lang`
```
~/.config/learnyounode/workshopper.json
```

## Test case with learnyounode
```js
multLangsWorkshopper({
name : name
, appDir : __dirname
, menuItems : [ {
name : 'credits'
, handler : credits
} ]
})
```

Related https://github.com/rvagg/workshopper/issues/48