README.md in i18n-js-3.0.0.rc15 vs README.md in i18n-js-3.0.0.rc16

- old
+ new

@@ -601,9 +601,30 @@ %Y - Year with century %z - Timezone offset (+0545) Check out `spec/*.spec.js` files for more examples! +#### Using pluralization and number formatting together +Sometimes you might want to display translation with formatted number, like adding thousand delimiters to displayed number +You can do this: +```json +{ + "en": { + "point": { + "one": "1 Point", + "other": "{{formatted_number}} Points", + "zero": "0 Points" + } + } +} +``` +```js +var point_in_number = 1000; +I18n.t('point', { count: point_in_number, formatted_number: I18n.toNumber(point_in_number) }); +``` +Output should be `1,000 points` + + ## Using multiple exported translation files on a page. This method is useful for very large apps where a single contained translations.js file is not desirable. Examples would be a global translations file and a more specific route translation file. ### Rails without asset pipeline 1. Setup your `config/i18n-js.yml` to have multiple files and try to minimize any overlap.