i18next-fetch-backend
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "i18next-fetch-backend", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "backend layer for i18next using browsers fetch", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"build": "babel -d lib src", | ||
"prepublish": "npm run lint && npm run build" | ||
"prepare": "npm run lint && npm run build" | ||
}, | ||
@@ -31,11 +31,11 @@ "files": [ | ||
"dependencies": { | ||
"i18next-xhr-backend": "^1.3.0" | ||
"i18next-xhr-backend": "^1.4.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.22.2", | ||
"babel-preset-es2015": "^6.22.0", | ||
"eslint": "^3.14.0", | ||
"eslint-config-airbnb-base": "^11.0.1", | ||
"eslint-plugin-import": "^2.2.0" | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"eslint": "^4.7.2", | ||
"eslint-config-airbnb-base": "^12.0.1", | ||
"eslint-plugin-import": "^2.7.0" | ||
} | ||
} |
@@ -105,3 +105,3 @@ # Introduction | ||
i18next | ||
.use(FetchBackend) | ||
.use(Fetch) | ||
.init({ | ||
@@ -129,1 +129,16 @@ fallbackLng: ['ja', 'en', 'zh'], | ||
``` | ||
# IE \<= 10 Support | ||
Because of an [issue](https://github.com/babel/babel/issues/116) in how IE used to handle inheritance of static properties, the following is necessary in order to support the old browsers: | ||
```js | ||
import i18next from 'i18next'; | ||
import FetchBackend from 'i18next-fetch-backend'; | ||
FetchBackend.type = 'backend'; | ||
i18next | ||
.use(FetchBackend) | ||
.init(/* ... */); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8283
143
Updatedi18next-xhr-backend@^1.4.3