diff --git a/README.md b/README.md index 41449a8..087dca3 100644 --- a/README.md +++ b/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** diff --git a/lib/babelfish.js b/lib/babelfish.js index 453e322..c5c0fe7 100644 --- a/lib/babelfish.js +++ b/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: