redux-polyglot
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -9,2 +9,5 @@ 'use strict'; | ||
var identity = exports.identity = function identity(x) { | ||
return x; | ||
}; | ||
// eslint-disable-next-line valid-typeof | ||
@@ -11,0 +14,0 @@ var is = exports.is = function is(type) { |
@@ -18,2 +18,4 @@ 'use strict'; | ||
var _utils = require('./private/utils'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -79,3 +81,10 @@ | ||
var getP = function getP(state, polyglotScope) { | ||
if (!getLocale(state) || !getPhrases(state)) return undefined; | ||
if (!getLocale(state) || !getPhrases(state)) { | ||
return { | ||
t: _utils.identity, | ||
tc: _utils.identity, | ||
tu: _utils.identity, | ||
tm: _utils.identity | ||
}; | ||
} | ||
return _extends({}, getPolyglot(state, polyglotScope), { | ||
@@ -82,0 +91,0 @@ t: getTranslation(state, polyglotScope), |
{ | ||
"name": "redux-polyglot", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Tool for using Polyglot.js with Redux", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -9,4 +9,2 @@ # redux-polyglot | ||
``` | ||
(not published yet) | ||
## Setup | ||
@@ -13,0 +11,0 @@ |
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
18475
13
253
153