Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.

Commit cfe5595

Browse files
committed
Update README
1 parent 6868b85 commit cfe5595

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22

33
## Dependencies
44

5-
* Requires [messageformat.js](https://github.com/messageformat/messageformat.js) 1.0.0-rc.3 or higher
5+
* Requires [messageformat.js](https://github.com/messageformat/messageformat.js) 1.0.0 or higher
66

77
## Install
88

99
```
1010
npm install messageformat-loader
1111
```
1212

13-
You'll also need another loader (like [json-loader](https://github.com/webpack/json-loader) or [multi-json-loader](https://github.com/cletusw/multi-json-loader)) to actually load the JSON strings
14-
1513
## Usage
1614

17-
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)
15+
[Documentation: Using loaders](https://webpack.js.org/concepts/loaders/#using-loaders)
1816

1917
[Documentation: messageformat.js](https://messageformat.github.io/)
2018

@@ -33,16 +31,19 @@ You'll also need another loader (like [json-loader](https://github.com/webpack/j
3331
### example.js
3432

3533
``` javascript
36-
var messages = require('messageformat-loader?locale=en!json-loader!./messages.json');
34+
var messages = require('messageformat-loader?locale=en!./messages.json');
3735
messages['ordinal-example']({ N: 1 });
3836
// => 'The 1st message.'
3937
```
4038

41-
## Options (passed as [query parameters](http://webpack.github.io/docs/using-loaders.html#query-parameters))
39+
## Options
4240

4341
* [`locale`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#MessageFormat) The [CLDR language code](http://www.unicode.org/cldr/charts/29/supplemental/language_territory_information.html) to pass to [messageformat.js](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html). Defaults to `en`.
4442
* [`disablePluralKeyChecks`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#disablePluralKeyChecks) By default, messageformat.js throws an error when a statement uses a non-numerical key that will never be matched as a pluralization category for the current locale. Use this argument to disable the validation and allow unused plural keys. Defaults to `false`.
4543
* [`intlSupport`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#setIntlSupport) Enable or disable support for the default formatters, which require the Intl object. Defaults to `false`.
44+
* [`biDiSupport`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#setBiDiSupport) Enable or disable the addition of Unicode control characters to all input to preserve the integrity of the output when mixing LTR and RTL text. Defaults to `false`.
45+
* [`formatters`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#addFormatters) Add custom formatter functions to this MessageFormat instance.
46+
* [`strictNumberSign`](https://messageformat.github.io/messageformat.js/doc/MessageFormat.html#setStrictNumberSign) Follow the stricter ICU MessageFormat spec and throw a runtime error if # is used with non-numeric input. Defaults to `false`.
4647

4748

4849
## License

0 commit comments

Comments
 (0)