From b983df967f2b4cc9108adc36a3d1dded76f05cad Mon Sep 17 00:00:00 2001 From: flyingalex Date: Sun, 17 Jun 2018 16:54:33 +0800 Subject: [PATCH 1/2] update the reademe --- README.md | 15 ++++++++++++--- package.json | 4 +--- 2 files changed, 13 insertions(+), 6 deletions(-) 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..6edf096 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,7 @@ "version": "0.1.5", "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", From b26a64ace4bae23a988b07522aad2d8a893371a4 Mon Sep 17 00:00:00 2001 From: flyingalex Date: Sun, 17 Jun 2018 16:55:09 +0800 Subject: [PATCH 2/2] feat(release 0.1.6): version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6edf096..551449f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-i18context", - "version": "0.1.5", + "version": "0.1.6", "description": "simple react i18 component", "main": "dist/index.js", "homepage": "https://github.com/flyingalex/react-i18context",