Skip to content

Commit

Permalink
readme: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Oct 19, 2014
1 parent b862653 commit 1f2c60f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -19,14 +19,14 @@ advantage of being easy, it's also very fast.

## Installation
```bash
$ npm i --save newspeak
npm install newspeak
```

## Overview
## Usage
```js
// Initialize newspeak.
var newspeak = require('newspeak');
var l20n = newspeak({gender: 'male', name: 'Tobi'});

l20n.language('en_US');

// Add a language decision tree.
Expand All @@ -39,7 +39,7 @@ var data = {
}
l20n.add('en_US', data);

// Request a string based on parameters.
// request a string
l20n.get('users', {count: 3});
// => '3 people'
```
Expand Down

0 comments on commit 1f2c60f

Please sign in to comment.