diff --git a/README.md b/README.md index 7c2bcf8..e8acc7c 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ ## How to run the demo ```bash -yarn -yarn start +npm install +npm run start ``` ## How to use this in your project -include the `IntlProvider` file in your souce file +```js +npm install --save react-i18context +``` # API ## 1.IntlProvider @@ -33,4 +35,11 @@ include the `IntlProvider` file in your souce file +``` + +## 4. InjectIntlLangWrapper + +```js +// in the FooComponent props will inject the changeLan method, so you can chnage the language manually +InjectIntlLangWrapper(FooComponent) ``` \ No newline at end of file diff --git a/package.json b/package.json index c14d2d9..551449f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,9 @@ { "name": "react-i18context", - "version": "0.1.5", + "version": "0.1.6", "description": "simple react i18 component", "main": "dist/index.js", - "directories": { - "example": "examples" - }, + "homepage": "https://github.com/flyingalex/react-i18context", "scripts": { "start": "webpack-dev-server --mode development", "transpile": "babel src -d dist --copy-files",