Permalink
Browse files

docs update

  • Loading branch information...
1 parent f5a7e85 commit 12fdc46426b192a9cdb5f2128ad5bea9b47c40bb @puzrin puzrin committed Dec 31, 2012
Showing with 7 additions and 5 deletions.
  1. +6 −4 README.md
  2. +1 −1 lib/babelfish.js
View
10 README.md
@@ -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**
View
2 lib/babelfish.js
@@ -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:

0 comments on commit 12fdc46

Please sign in to comment.