Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Dec 31, 2012
1 parent f5a7e85 commit 12fdc46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -86,10 +86,12 @@ i18n.t('uk-UA', 'demo.conv.alright'); // -> 'Alright, man!'


// You may want to get "compiled" translations to export them into browser.
i18n.getCompiledData('ru-RU', 'demo');
// -> { hello : { type: 'function', translation: [Function] },
// conv : { wazup : { type: 'string', translation: 'Как дела?' },
// alright : { type: 'string', translation: 'Alright, man!' } } }
i18n.getCompiledData('ru-RU');
// -> {
// 'demo.hello' : { type: 'function', translation: [Function] },
// 'demo.conv.wazup' : { type: 'string', translation: 'Как дела?' },
// 'demo.conv.alright' : { type: 'string', translation: 'Alright, man!' }
// }
```

**NOTICE**
Expand Down
2 changes: 1 addition & 1 deletion lib/babelfish.js
Expand Up @@ -398,7 +398,7 @@ BabelFish.prototype.t = BabelFish.prototype.translate;
* - locale (String): Locale of translation
* - phrase (String): Phrase ID, e.g. `app.forums.replies_count`
*
* Returns compiled "translator", or objet with compiled translators for all
* Returns compiled "translator", or object with compiled translators for all
* phrases of `locale` if `phrase` was not specified.
*
* Each translator is an object with fields:
Expand Down

0 comments on commit 12fdc46

Please sign in to comment.