Socket
Socket
Sign inDemoInstall

react-i18next

Package Overview
Dependencies
Maintainers
2
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-i18next - npm Package Compare versions

Comparing version 2.2.3 to 3.0.0

7

__tests__/i18nextProvider-test.js
jest.unmock('../src/I18nextProvider');
import React from 'react';
import PropTypes from 'prop-types';
import I18nextProvider from '../src/I18nextProvider' ;

@@ -11,3 +12,3 @@

expect(I18nextProvider.childContextTypes.i18n)
.toBe(React.PropTypes.object.isRequired);
.toBe(PropTypes.object.isRequired);
});

@@ -32,8 +33,8 @@ it('should throw an exception if you try to change i18n object', () => {

expect(I18nextProvider.propTypes.i18n)
.toBe(React.PropTypes.object.isRequired);
.toBe(PropTypes.object.isRequired);
});
it('should have children proptype required', () => {
expect(I18nextProvider.propTypes.children)
.toBe(React.PropTypes.element.isRequired);
.toBe(PropTypes.element.isRequired);
});
});
jest.unmock('../src/translate');
import React from 'react';
import PropTypes from 'prop-types';
import Interpolate from '../src/interpolate';

@@ -8,5 +9,5 @@

expect(Interpolate.contextTypes.i18n)
.toBe(React.PropTypes.object.isRequired);
.toBe(PropTypes.object.isRequired);
expect(Interpolate.contextTypes.t)
.toBe(React.PropTypes.func.isRequired);
.toBe(PropTypes.func.isRequired);
const props = {};

@@ -13,0 +14,0 @@ const context = {

jest.unmock('../src/translate');
import React from 'react';
import PropTypes from 'prop-types';
import translate from '../src/translate';

@@ -17,4 +18,4 @@

expect(wrapped.WrappedComponent).toBe(Elem);
expect(wrapped.contextTypes.i18n).toBe(React.PropTypes.object);
expect(wrapped.childContextTypes.t).toBe(React.PropTypes.func.isRequired);
expect(wrapped.contextTypes.i18n).toBe(PropTypes.object);
expect(wrapped.childContextTypes.t).toBe(PropTypes.func.isRequired);
expect(wrapped.displayName).toBe('Translate(Elem)');

@@ -21,0 +22,0 @@ expect(wrapped.namespaces.length).toBe(2);

@@ -0,1 +1,7 @@

### 3.0.0
- [BREAKING] assert you install prop-types as a peerDependency based on changes in react >= 15.5.x
- update react to 15.5.x use prop-types module to remove react warnings [PR248](https://github.com/i18next/react-i18next/pull/248)
- update all dependencies
- move react, prop-types to peerDependencies
### 2.2.3

@@ -2,0 +8,0 @@ - try not access store if undefined for hmr

@@ -1,14 +0,6 @@

define('reactI18next', ['exports', 'react'], function (exports, React) { 'use strict';
define('reactI18next', ['exports', 'react', 'prop-types'], function (exports, React, PropTypes) { 'use strict';
var React__default = 'default' in React ? React['default'] : React;
PropTypes = 'default' in PropTypes ? PropTypes['default'] : PropTypes;
function interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var index = createCommonjsModule(function (module) {
/**

@@ -18,4 +10,2 @@ * Copyright 2015, Yahoo! Inc.

*/
'use strict';
var REACT_STATICS = {

@@ -43,3 +33,3 @@ childContextTypes: true,

module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
var index = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components

@@ -66,12 +56,19 @@ var keys = Object.getOwnPropertyNames(sourceComponent);

};
});
var hoistStatics = interopDefault(index);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
var classCallCheck = function (instance, Constructor) {

@@ -101,2 +98,6 @@ if (!(instance instanceof Constructor)) {

var defineProperty = function (obj, key, value) {

@@ -131,2 +132,4 @@ if (key in obj) {

var inherits = function (subClass, superClass) {

@@ -148,2 +151,12 @@ if (typeof superClass !== "function" && superClass !== null) {

var possibleConstructorReturn = function (self, call) {

@@ -157,2 +170,6 @@ if (!self) {

var slicedToArray = function () {

@@ -201,13 +218,13 @@ function sliceIterator(arr, i) {

function translate(namespaces) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var _options$withRef = options.withRef;
var withRef = _options$withRef === undefined ? false : _options$withRef;
var _options$wait = options.wait;
var wait = _options$wait === undefined ? false : _options$wait;
var _options$bindI18n = options.bindI18n;
var bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n;
var _options$bindStore = options.bindStore;
var bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore;
var _options$translateFun = options.translateFuncName;
var translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$withRef = options.withRef,
withRef = _options$withRef === undefined ? false : _options$withRef,
_options$wait = options.wait,
wait = _options$wait === undefined ? false : _options$wait,
_options$bindI18n = options.bindI18n,
bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n,
_options$bindStore = options.bindStore,
bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore,
_options$translateFun = options.translateFuncName,
translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;

@@ -222,3 +239,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Translate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Translate.__proto__ || Object.getPrototypeOf(Translate)).call(this, props, context));

@@ -320,5 +337,5 @@ _this.i18n = context.i18n || props.i18n;

var _state = this.state;
var i18nLoadedAt = _state.i18nLoadedAt;
var ready = _state.ready;
var _state = this.state,
i18nLoadedAt = _state.i18nLoadedAt,
ready = _state.ready;

@@ -342,6 +359,6 @@ var extraProps = (_extraProps = { i18nLoadedAt: i18nLoadedAt }, defineProperty(_extraProps, translateFuncName, this[translateFuncName]), defineProperty(_extraProps, 'i18n', this.i18n), _extraProps);

Translate.contextTypes = {
i18n: React.PropTypes.object
i18n: PropTypes.object
};
Translate.childContextTypes = defineProperty({}, translateFuncName, React.PropTypes.func.isRequired);
Translate.childContextTypes = defineProperty({}, translateFuncName, PropTypes.func.isRequired);

@@ -352,3 +369,3 @@ Translate.displayName = 'Translate(' + getDisplayName(WrappedComponent) + ')';

return hoistStatics(Translate, WrappedComponent);
return index(Translate, WrappedComponent);
};

@@ -363,3 +380,3 @@ }

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Interpolate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Interpolate.__proto__ || Object.getPrototypeOf(Interpolate)).call(this, props, context));

@@ -378,5 +395,5 @@ _this.i18n = context.i18n;

var REGEXP = this.props.regexp || this.i18n.services.interpolator.regexp;
var _props = this.props;
var className = _props.className;
var style = _props.style;
var _props = this.props,
className = _props.className,
style = _props.style;

@@ -435,9 +452,9 @@ // Set to true if you want to use raw HTML in translation values

Interpolate.propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string
children: PropTypes.node,
className: PropTypes.string
};
Interpolate.contextTypes = {
i18n: React.PropTypes.object.isRequired,
t: React.PropTypes.func.isRequired
i18n: PropTypes.object.isRequired,
t: PropTypes.func.isRequired
};

@@ -451,3 +468,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(I18nextProvider).call(this, props, context));
var _this = possibleConstructorReturn(this, (I18nextProvider.__proto__ || Object.getPrototypeOf(I18nextProvider)).call(this, props, context));

@@ -482,8 +499,8 @@ _this.i18n = props.i18n;

I18nextProvider.propTypes = {
i18n: React.PropTypes.object.isRequired,
children: React.PropTypes.element.isRequired
i18n: PropTypes.object.isRequired,
children: PropTypes.element.isRequired
};
I18nextProvider.childContextTypes = {
i18n: React.PropTypes.object.isRequired
i18n: PropTypes.object.isRequired
};

@@ -502,7 +519,6 @@

for (var _iterator = Object.entries(components[i])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = slicedToArray(_step.value, 2);
var _step$value = slicedToArray(_step.value, 2),
key = _step$value[0],
value = _step$value[1];
var key = _step$value[0];
var value = _step$value[1];
iterator(value, i, key);

@@ -532,6 +548,6 @@ }

var flattened = [];
eachComponents(components, function (Component) {
if (Component && Component.namespaces) {
eachComponents(components, function (Component$$1) {
if (Component$$1 && Component$$1.namespaces) {
Component.namespaces.forEach(function (namespace) {
Component$$1.namespaces.forEach(function (namespace) {
if (flattened.indexOf(namespace) === -1) {

@@ -547,4 +563,4 @@ flattened.push(namespace);

function loadNamespaces(_ref) {
var components = _ref.components;
var i18n = _ref.i18n;
var components = _ref.components,
i18n = _ref.i18n;

@@ -565,2 +581,2 @@ var allNamespaces = filterAndFlattenComponents(components);

});
});

@@ -1,1 +0,1 @@

define("reactI18next",["exports","react"],function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function o(e){return e.displayName||e.name||"Component"}function i(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.withRef,i=void 0!==r&&r,a=n.wait,s=void 0!==a&&a,u=n.bindI18n,c=void 0===u?"languageChanged loaded":u,f=n.bindStore,g=void 0===f?"added removed":f,w=n.translateFuncName,x=void 0===w?"t":w;return function(n){var r=function(t){function r(t,n){d(this,r);var o=b(this,Object.getPrototypeOf(r).call(this,t,n));return o.i18n=n.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return m(r,t),y(r,[{key:"getChildContext",value:function(){return h({},x,this[x])}},{key:"componentWillMount",value:function(){this[x]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){c&&t.i18n.on(c,t.onI18nChanged),g&&t.i18n.store&&t.i18n.store.on(g,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),s&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),s||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(c){var t=c.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(g){var n=g.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return i||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,r=t.i18nLoadedAt,o=t.ready,a=(e={i18nLoadedAt:r},h(e,x,this[x]),h(e,"i18n",this.i18n),e);return i&&(a.ref="wrappedInstance"),!o&&s?null:p.createElement(n,v({},this.props,a))}}]),r}(t.Component);return r.WrappedComponent=n,r.contextTypes={i18n:t.PropTypes.object},r.childContextTypes=h({},x,t.PropTypes.func.isRequired),r.displayName="Translate("+o(n)+")",r.namespaces=e,l(r,n)}}function a(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===f(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=g(s.value,2),c=p[0],l=p[1];t(l,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function s(e){var t=[];return a(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function u(e){var t=e.components,n=e.i18n,r=s(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var p="default"in t?t.default:t,c=r(function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,o,i){if("string"!=typeof o){var a=Object.getOwnPropertyNames(o);r&&(a=a.concat(Object.getOwnPropertySymbols(o)));for(var s=0;s<a.length;++s)if(!(t[a[s]]||n[a[s]]||i&&i[a[s]]))try{e[a[s]]=o[a[s]]}catch(e){}}return e}}),l=n(c),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},g=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(e){function t(e,n){d(this,t);var r=b(this,Object.getPrototypeOf(t).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return m(t,e),y(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",u=v({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,u);if(!c||"string"!=typeof c)return p.createElement("noscript",null);var l=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?p.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},l),p.createElement.apply(this,[t,{className:o,style:i}].concat(l))}}]),t}(t.Component);w.propTypes={children:t.PropTypes.node,className:t.PropTypes.string},w.contextTypes={i18n:t.PropTypes.object.isRequired,t:t.PropTypes.func.isRequired};var x=function(e){function n(e,t){d(this,n);var r=b(this,Object.getPrototypeOf(n).call(this,e,t));return r.i18n=e.i18n,r}return m(n,e),y(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);x.propTypes={i18n:t.PropTypes.object.isRequired,children:t.PropTypes.element.isRequired},x.childContextTypes={i18n:t.PropTypes.object.isRequired},e.loadNamespaces=u,e.translate=i,e.Interpolate=w,e.I18nextProvider=x,Object.defineProperty(e,"__esModule",{value:!0})});
define("reactI18next",["exports","react","prop-types"],function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}function o(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.withRef,a=void 0!==i&&i,s=o.wait,l=void 0!==s&&s,c=o.bindI18n,p=void 0===c?"languageChanged loaded":c,d=o.bindStore,w=void 0===d?"added removed":d,O=o.translateFuncName,j=void 0===O?"t":O;return function(o){var i=function(t){function n(t,r){y(this,n);var o=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,r));return o.i18n=r.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return b(n,t),h(n,[{key:"getChildContext",value:function(){return v({},j,this[j])}},{key:"componentWillMount",value:function(){this[j]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){p&&t.i18n.on(p,t.onI18nChanged),w&&t.i18n.store&&t.i18n.store.on(w,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),l&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),l||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(p){var t=p.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(w){var n=w.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return a||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,n=t.i18nLoadedAt,r=t.ready,i=(e={i18nLoadedAt:n},v(e,j,this[j]),v(e,"i18n",this.i18n),e);return a&&(i.ref="wrappedInstance"),!r&&l?null:u.createElement(o,m({},this.props,i))}}]),n}(t.Component);return i.WrappedComponent=o,i.contextTypes={i18n:n.object},i.childContextTypes=v({},j,n.func.isRequired),i.displayName="Translate("+r(o)+")",i.namespaces=e,f(i,o)}}function i(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===d(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=w(s.value,2),c=l[0],p=l[1];t(p,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function a(e){var t=[];return i(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function s(e){var t=e.components,n=e.i18n,r=a(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var u="default"in t?t.default:t;n="default"in n?n.default:n;var l={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},c={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},p="function"==typeof Object.getOwnPropertySymbols,f=function(e,t,n){if("string"!=typeof t){var r=Object.getOwnPropertyNames(t);p&&(r=r.concat(Object.getOwnPropertySymbols(t)));for(var o=0;o<r.length;++o)if(!(l[r[o]]||c[r[o]]||n&&n[r[o]]))try{e[r[o]]=t[r[o]]}catch(e){}}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(e){function t(e,n){y(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return b(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",l=m({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,l);if(!c||"string"!=typeof c)return u.createElement("noscript",null);var p=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?u.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},p),u.createElement.apply(this,[t,{className:o,style:i}].concat(p))}}]),t}(t.Component);O.propTypes={children:n.node,className:n.string},O.contextTypes={i18n:n.object.isRequired,t:n.func.isRequired};var j=function(e){function n(e,t){y(this,n);var r=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.i18n=e.i18n,r}return b(n,e),h(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);j.propTypes={i18n:n.object.isRequired,children:n.element.isRequired},j.childContextTypes={i18n:n.object.isRequired},e.loadNamespaces=s,e.translate=o,e.Interpolate=O,e.I18nextProvider=j,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -11,2 +11,8 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -24,3 +30,3 @@

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(I18nextProvider).call(this, props, context));
var _this = _possibleConstructorReturn(this, (I18nextProvider.__proto__ || Object.getPrototypeOf(I18nextProvider)).call(this, props, context));

@@ -56,10 +62,10 @@ _this.i18n = props.i18n;

I18nextProvider.propTypes = {
i18n: _react.PropTypes.object.isRequired,
children: _react.PropTypes.element.isRequired
i18n: _propTypes2.default.object.isRequired,
children: _propTypes2.default.element.isRequired
};
I18nextProvider.childContextTypes = {
i18n: _react.PropTypes.object.isRequired
i18n: _propTypes2.default.object.isRequired
};
exports.default = I18nextProvider;

@@ -15,2 +15,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -30,3 +34,3 @@

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Interpolate).call(this, props, context));
var _this = _possibleConstructorReturn(this, (Interpolate.__proto__ || Object.getPrototypeOf(Interpolate)).call(this, props, context));

@@ -45,5 +49,5 @@ _this.i18n = context.i18n;

var REGEXP = this.props.regexp || this.i18n.services.interpolator.regexp;
var _props = this.props;
var className = _props.className;
var style = _props.style;
var _props = this.props,
className = _props.className,
style = _props.style;

@@ -103,11 +107,11 @@ // Set to true if you want to use raw HTML in translation values

Interpolate.propTypes = {
children: _react.PropTypes.node,
className: _react.PropTypes.string
children: _propTypes2.default.node,
className: _propTypes2.default.string
};
Interpolate.contextTypes = {
i18n: _react.PropTypes.object.isRequired,
t: _react.PropTypes.func.isRequired
i18n: _propTypes2.default.object.isRequired,
t: _propTypes2.default.func.isRequired
};
exports.default = Interpolate;

@@ -9,3 +9,3 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

@@ -24,7 +24,6 @@ exports.default = loadNamespaces;

for (var _iterator = Object.entries(components[i])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = _slicedToArray(_step.value, 2);
var _step$value = _slicedToArray(_step.value, 2),
key = _step$value[0],
value = _step$value[1];
var key = _step$value[0];
var value = _step$value[1];
iterator(value, i, key);

@@ -68,4 +67,4 @@ }

function loadNamespaces(_ref) {
var components = _ref.components;
var i18n = _ref.i18n;
var components = _ref.components,
i18n = _ref.i18n;

@@ -72,0 +71,0 @@ var allNamespaces = filterAndFlattenComponents(components);

@@ -17,2 +17,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _hoistNonReactStatics = require('hoist-non-react-statics');

@@ -37,13 +41,13 @@

function translate(namespaces) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var _options$withRef = options.withRef;
var withRef = _options$withRef === undefined ? false : _options$withRef;
var _options$wait = options.wait;
var wait = _options$wait === undefined ? false : _options$wait;
var _options$bindI18n = options.bindI18n;
var bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n;
var _options$bindStore = options.bindStore;
var bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore;
var _options$translateFun = options.translateFuncName;
var translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$withRef = options.withRef,
withRef = _options$withRef === undefined ? false : _options$withRef,
_options$wait = options.wait,
wait = _options$wait === undefined ? false : _options$wait,
_options$bindI18n = options.bindI18n,
bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n,
_options$bindStore = options.bindStore,
bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore,
_options$translateFun = options.translateFuncName,
translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;

@@ -58,3 +62,3 @@

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Translate).call(this, props, context));
var _this = _possibleConstructorReturn(this, (Translate.__proto__ || Object.getPrototypeOf(Translate)).call(this, props, context));

@@ -156,5 +160,5 @@ _this.i18n = context.i18n || props.i18n;

var _state = this.state;
var i18nLoadedAt = _state.i18nLoadedAt;
var ready = _state.ready;
var _state = this.state,
i18nLoadedAt = _state.i18nLoadedAt,
ready = _state.ready;

@@ -179,6 +183,6 @@ var extraProps = (_extraProps = { i18nLoadedAt: i18nLoadedAt }, _defineProperty(_extraProps, translateFuncName, this[translateFuncName]), _defineProperty(_extraProps, 'i18n', this.i18n), _extraProps);

Translate.contextTypes = {
i18n: _react.PropTypes.object
i18n: _propTypes2.default.object
};
Translate.childContextTypes = _defineProperty({}, translateFuncName, _react.PropTypes.func.isRequired);
Translate.childContextTypes = _defineProperty({}, translateFuncName, _propTypes2.default.func.isRequired);

@@ -185,0 +189,0 @@ Translate.displayName = 'Translate(' + getDisplayName(WrappedComponent) + ')';

@@ -9,3 +9,4 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

import { Component, PropTypes, Children } from 'react';
import { Component, Children } from 'react';
import PropTypes from 'prop-types';

@@ -18,3 +19,3 @@ var I18nextProvider = function (_Component) {

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(I18nextProvider).call(this, props, context));
var _this = _possibleConstructorReturn(this, (I18nextProvider.__proto__ || Object.getPrototypeOf(I18nextProvider)).call(this, props, context));

@@ -21,0 +22,0 @@ _this.i18n = props.i18n;

@@ -11,3 +11,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

@@ -20,3 +21,3 @@ var Interpolate = function (_Component) {

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Interpolate).call(this, props, context));
var _this = _possibleConstructorReturn(this, (Interpolate.__proto__ || Object.getPrototypeOf(Interpolate)).call(this, props, context));

@@ -35,5 +36,5 @@ _this.i18n = context.i18n;

var REGEXP = this.props.regexp || this.i18n.services.interpolator.regexp;
var _props = this.props;
var className = _props.className;
var style = _props.style;
var _props = this.props,
className = _props.className,
style = _props.style;

@@ -40,0 +41,0 @@ // Set to true if you want to use raw HTML in translation values

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

@@ -16,7 +16,6 @@ // Borrowed from https://github.com/Rezonans/redux-async-connect/blob/master/modules/ReduxAsyncConnect.js#L16

for (var _iterator = Object.entries(components[i])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = _slicedToArray(_step.value, 2);
var _step$value = _slicedToArray(_step.value, 2),
key = _step$value[0],
value = _step$value[1];
var key = _step$value[0];
var value = _step$value[1];
iterator(value, i, key);

@@ -60,4 +59,4 @@ }

export default function loadNamespaces(_ref) {
var components = _ref.components;
var i18n = _ref.i18n;
var components = _ref.components,
i18n = _ref.i18n;

@@ -64,0 +63,0 @@ var allNamespaces = filterAndFlattenComponents(components);

@@ -13,3 +13,4 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import hoistStatics from 'hoist-non-react-statics';

@@ -22,13 +23,13 @@

export default function translate(namespaces) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var _options$withRef = options.withRef;
var withRef = _options$withRef === undefined ? false : _options$withRef;
var _options$wait = options.wait;
var wait = _options$wait === undefined ? false : _options$wait;
var _options$bindI18n = options.bindI18n;
var bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n;
var _options$bindStore = options.bindStore;
var bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore;
var _options$translateFun = options.translateFuncName;
var translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$withRef = options.withRef,
withRef = _options$withRef === undefined ? false : _options$withRef,
_options$wait = options.wait,
wait = _options$wait === undefined ? false : _options$wait,
_options$bindI18n = options.bindI18n,
bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n,
_options$bindStore = options.bindStore,
bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore,
_options$translateFun = options.translateFuncName,
translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;

@@ -43,3 +44,3 @@

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(Translate).call(this, props, context));
var _this = _possibleConstructorReturn(this, (Translate.__proto__ || Object.getPrototypeOf(Translate)).call(this, props, context));

@@ -141,5 +142,5 @@ _this.i18n = context.i18n || props.i18n;

var _state = this.state;
var i18nLoadedAt = _state.i18nLoadedAt;
var ready = _state.ready;
var _state = this.state,
i18nLoadedAt = _state.i18nLoadedAt,
ready = _state.ready;

@@ -146,0 +147,0 @@ var extraProps = (_extraProps = { i18nLoadedAt: i18nLoadedAt }, _defineProperty(_extraProps, translateFuncName, this[translateFuncName]), _defineProperty(_extraProps, 'i18n', this.i18n), _extraProps);

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define('reactI18next', ['exports', 'react'], factory) :
(factory((global.reactI18next = global.reactI18next || {}),global.React));
}(this, (function (exports,React) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types')) :
typeof define === 'function' && define.amd ? define('reactI18next', ['exports', 'react', 'prop-types'], factory) :
(factory((global.reactI18next = global.reactI18next || {}),global.React,global.PropTypes));
}(this, (function (exports,React,PropTypes) { 'use strict';
var React__default = 'default' in React ? React['default'] : React;
PropTypes = 'default' in PropTypes ? PropTypes['default'] : PropTypes;
function interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var index = createCommonjsModule(function (module) {
/**

@@ -22,4 +14,2 @@ * Copyright 2015, Yahoo! Inc.

*/
'use strict';
var REACT_STATICS = {

@@ -47,3 +37,3 @@ childContextTypes: true,

module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
var index = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components

@@ -70,12 +60,19 @@ var keys = Object.getOwnPropertyNames(sourceComponent);

};
});
var hoistStatics = interopDefault(index);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
var classCallCheck = function (instance, Constructor) {

@@ -105,2 +102,6 @@ if (!(instance instanceof Constructor)) {

var defineProperty = function (obj, key, value) {

@@ -135,2 +136,4 @@ if (key in obj) {

var inherits = function (subClass, superClass) {

@@ -152,2 +155,12 @@ if (typeof superClass !== "function" && superClass !== null) {

var possibleConstructorReturn = function (self, call) {

@@ -161,2 +174,6 @@ if (!self) {

var slicedToArray = function () {

@@ -205,13 +222,13 @@ function sliceIterator(arr, i) {

function translate(namespaces) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var _options$withRef = options.withRef;
var withRef = _options$withRef === undefined ? false : _options$withRef;
var _options$wait = options.wait;
var wait = _options$wait === undefined ? false : _options$wait;
var _options$bindI18n = options.bindI18n;
var bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n;
var _options$bindStore = options.bindStore;
var bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore;
var _options$translateFun = options.translateFuncName;
var translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$withRef = options.withRef,
withRef = _options$withRef === undefined ? false : _options$withRef,
_options$wait = options.wait,
wait = _options$wait === undefined ? false : _options$wait,
_options$bindI18n = options.bindI18n,
bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n,
_options$bindStore = options.bindStore,
bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore,
_options$translateFun = options.translateFuncName,
translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;

@@ -226,3 +243,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Translate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Translate.__proto__ || Object.getPrototypeOf(Translate)).call(this, props, context));

@@ -324,5 +341,5 @@ _this.i18n = context.i18n || props.i18n;

var _state = this.state;
var i18nLoadedAt = _state.i18nLoadedAt;
var ready = _state.ready;
var _state = this.state,
i18nLoadedAt = _state.i18nLoadedAt,
ready = _state.ready;

@@ -346,6 +363,6 @@ var extraProps = (_extraProps = { i18nLoadedAt: i18nLoadedAt }, defineProperty(_extraProps, translateFuncName, this[translateFuncName]), defineProperty(_extraProps, 'i18n', this.i18n), _extraProps);

Translate.contextTypes = {
i18n: React.PropTypes.object
i18n: PropTypes.object
};
Translate.childContextTypes = defineProperty({}, translateFuncName, React.PropTypes.func.isRequired);
Translate.childContextTypes = defineProperty({}, translateFuncName, PropTypes.func.isRequired);

@@ -356,3 +373,3 @@ Translate.displayName = 'Translate(' + getDisplayName(WrappedComponent) + ')';

return hoistStatics(Translate, WrappedComponent);
return index(Translate, WrappedComponent);
};

@@ -367,3 +384,3 @@ }

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Interpolate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Interpolate.__proto__ || Object.getPrototypeOf(Interpolate)).call(this, props, context));

@@ -382,5 +399,5 @@ _this.i18n = context.i18n;

var REGEXP = this.props.regexp || this.i18n.services.interpolator.regexp;
var _props = this.props;
var className = _props.className;
var style = _props.style;
var _props = this.props,
className = _props.className,
style = _props.style;

@@ -439,9 +456,9 @@ // Set to true if you want to use raw HTML in translation values

Interpolate.propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string
children: PropTypes.node,
className: PropTypes.string
};
Interpolate.contextTypes = {
i18n: React.PropTypes.object.isRequired,
t: React.PropTypes.func.isRequired
i18n: PropTypes.object.isRequired,
t: PropTypes.func.isRequired
};

@@ -455,3 +472,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(I18nextProvider).call(this, props, context));
var _this = possibleConstructorReturn(this, (I18nextProvider.__proto__ || Object.getPrototypeOf(I18nextProvider)).call(this, props, context));

@@ -486,8 +503,8 @@ _this.i18n = props.i18n;

I18nextProvider.propTypes = {
i18n: React.PropTypes.object.isRequired,
children: React.PropTypes.element.isRequired
i18n: PropTypes.object.isRequired,
children: PropTypes.element.isRequired
};
I18nextProvider.childContextTypes = {
i18n: React.PropTypes.object.isRequired
i18n: PropTypes.object.isRequired
};

@@ -506,7 +523,6 @@

for (var _iterator = Object.entries(components[i])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = slicedToArray(_step.value, 2);
var _step$value = slicedToArray(_step.value, 2),
key = _step$value[0],
value = _step$value[1];
var key = _step$value[0];
var value = _step$value[1];
iterator(value, i, key);

@@ -536,6 +552,6 @@ }

var flattened = [];
eachComponents(components, function (Component) {
if (Component && Component.namespaces) {
eachComponents(components, function (Component$$1) {
if (Component$$1 && Component$$1.namespaces) {
Component.namespaces.forEach(function (namespace) {
Component$$1.namespaces.forEach(function (namespace) {
if (flattened.indexOf(namespace) === -1) {

@@ -551,4 +567,4 @@ flattened.push(namespace);

function loadNamespaces(_ref) {
var components = _ref.components;
var i18n = _ref.i18n;
var components = _ref.components,
i18n = _ref.i18n;

@@ -569,2 +585,2 @@ var allNamespaces = filterAndFlattenComponents(components);

})));
})));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define("reactI18next",["exports","react"],t):t(e.reactI18next=e.reactI18next||{},e.React)}(this,function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function o(e){return e.displayName||e.name||"Component"}function i(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.withRef,i=void 0!==r&&r,a=n.wait,s=void 0!==a&&a,u=n.bindI18n,c=void 0===u?"languageChanged loaded":u,f=n.bindStore,g=void 0===f?"added removed":f,x=n.translateFuncName,w=void 0===x?"t":x;return function(n){var r=function(t){function r(t,n){d(this,r);var o=b(this,Object.getPrototypeOf(r).call(this,t,n));return o.i18n=n.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return m(r,t),y(r,[{key:"getChildContext",value:function(){return h({},w,this[w])}},{key:"componentWillMount",value:function(){this[w]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){c&&t.i18n.on(c,t.onI18nChanged),g&&t.i18n.store&&t.i18n.store.on(g,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),s&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),s||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(c){var t=c.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(g){var n=g.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return i||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,r=t.i18nLoadedAt,o=t.ready,a=(e={i18nLoadedAt:r},h(e,w,this[w]),h(e,"i18n",this.i18n),e);return i&&(a.ref="wrappedInstance"),!o&&s?null:p.createElement(n,v({},this.props,a))}}]),r}(t.Component);return r.WrappedComponent=n,r.contextTypes={i18n:t.PropTypes.object},r.childContextTypes=h({},w,t.PropTypes.func.isRequired),r.displayName="Translate("+o(n)+")",r.namespaces=e,l(r,n)}}function a(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===f(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=g(s.value,2),c=p[0],l=p[1];t(l,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function s(e){var t=[];return a(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function u(e){var t=e.components,n=e.i18n,r=s(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var p="default"in t?t.default:t,c=r(function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,o,i){if("string"!=typeof o){var a=Object.getOwnPropertyNames(o);r&&(a=a.concat(Object.getOwnPropertySymbols(o)));for(var s=0;s<a.length;++s)if(!(t[a[s]]||n[a[s]]||i&&i[a[s]]))try{e[a[s]]=o[a[s]]}catch(e){}}return e}}),l=n(c),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},g=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e){function t(e,n){d(this,t);var r=b(this,Object.getPrototypeOf(t).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return m(t,e),y(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",u=v({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,u);if(!c||"string"!=typeof c)return p.createElement("noscript",null);var l=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?p.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},l),p.createElement.apply(this,[t,{className:o,style:i}].concat(l))}}]),t}(t.Component);x.propTypes={children:t.PropTypes.node,className:t.PropTypes.string},x.contextTypes={i18n:t.PropTypes.object.isRequired,t:t.PropTypes.func.isRequired};var w=function(e){function n(e,t){d(this,n);var r=b(this,Object.getPrototypeOf(n).call(this,e,t));return r.i18n=e.i18n,r}return m(n,e),y(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);w.propTypes={i18n:t.PropTypes.object.isRequired,children:t.PropTypes.element.isRequired},w.childContextTypes={i18n:t.PropTypes.object.isRequired},e.loadNamespaces=u,e.translate=i,e.Interpolate=x,e.I18nextProvider=w,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define("reactI18next",["exports","react","prop-types"],t):t(e.reactI18next=e.reactI18next||{},e.React,e.PropTypes)}(this,function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}function o(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.withRef,a=void 0!==i&&i,s=o.wait,p=void 0!==s&&s,c=o.bindI18n,l=void 0===c?"languageChanged loaded":c,d=o.bindStore,w=void 0===d?"added removed":d,x=o.translateFuncName,O=void 0===x?"t":x;return function(o){var i=function(t){function n(t,r){y(this,n);var o=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,r));return o.i18n=r.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return b(n,t),h(n,[{key:"getChildContext",value:function(){return m({},O,this[O])}},{key:"componentWillMount",value:function(){this[O]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){l&&t.i18n.on(l,t.onI18nChanged),w&&t.i18n.store&&t.i18n.store.on(w,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),p&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),p||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(l){var t=l.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(w){var n=w.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return a||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,n=t.i18nLoadedAt,r=t.ready,i=(e={i18nLoadedAt:n},m(e,O,this[O]),m(e,"i18n",this.i18n),e);return a&&(i.ref="wrappedInstance"),!r&&p?null:u.createElement(o,v({},this.props,i))}}]),n}(t.Component);return i.WrappedComponent=o,i.contextTypes={i18n:n.object},i.childContextTypes=m({},O,n.func.isRequired),i.displayName="Translate("+r(o)+")",i.namespaces=e,f(i,o)}}function i(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===d(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=w(s.value,2),c=p[0],l=p[1];t(l,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function a(e){var t=[];return i(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function s(e){var t=e.components,n=e.i18n,r=a(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var u="default"in t?t.default:t;n="default"in n?n.default:n;var p={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},c={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},l="function"==typeof Object.getOwnPropertySymbols,f=function(e,t,n){if("string"!=typeof t){var r=Object.getOwnPropertyNames(t);l&&(r=r.concat(Object.getOwnPropertySymbols(t)));for(var o=0;o<r.length;++o)if(!(p[r[o]]||c[r[o]]||n&&n[r[o]]))try{e[r[o]]=t[r[o]]}catch(e){}}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e){function t(e,n){y(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return b(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",p=v({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,p);if(!c||"string"!=typeof c)return u.createElement("noscript",null);var l=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?u.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},l),u.createElement.apply(this,[t,{className:o,style:i}].concat(l))}}]),t}(t.Component);x.propTypes={children:n.node,className:n.string},x.contextTypes={i18n:n.object.isRequired,t:n.func.isRequired};var O=function(e){function n(e,t){y(this,n);var r=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.i18n=e.i18n,r}return b(n,e),h(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);O.propTypes={i18n:n.object.isRequired,children:n.element.isRequired},O.childContextTypes={i18n:n.object.isRequired},e.loadNamespaces=s,e.translate=o,e.Interpolate=x,e.I18nextProvider=O,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "react-i18next",
"version": "2.2.3",
"version": "3.0.0",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",

@@ -28,32 +28,33 @@ "main": "dist/commonjs/index.js",

"devDependencies": {
"babel-cli": "6.11.4",
"babel-core": "6.13.2",
"babel-eslint": "6.1.2",
"babel-jest": "14.1.0",
"babel-preset-es2015": "6.13.2",
"babel-preset-es2015-rollup": "1.2.0",
"babel-preset-stage-0": "6.5.0",
"babel-register": "6.11.6",
"babel-cli": "6.24.1",
"babel-core": "6.24.1",
"babel-eslint": "7.2.1",
"babel-jest": "19.0.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-es2015-rollup": "3.0.0",
"babel-preset-stage-0": "6.24.1",
"babel-register": "6.24.1",
"coveralls": "^2.11.12",
"enzyme": "2.4.1",
"eslint": "3.3.1",
"eslint-config-airbnb": "10.0.1",
"eslint-plugin-import": "1.13.0",
"eslint-plugin-jsx-a11y": "2.1.0",
"eslint-plugin-react": "6.1.2",
"i18next": "3.4.1",
"jest": "14.1.0",
"jest-cli": "14.1.0",
"enzyme": "2.8.0",
"eslint": "3.19.0",
"eslint-config-airbnb": "14.1.0",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-jsx-a11y": "4.0.0",
"eslint-plugin-react": "6.10.3",
"i18next": "7.1.3",
"jest": "19.0.2",
"jest-cli": "19.0.2",
"mkdirp": "0.5.1",
"react": "15.3.0",
"rimraf": "2.5.4",
"rollup": "0.34.10",
"rollup-plugin-babel": "2.6.1",
"rollup-plugin-commonjs": "3.3.1",
"rollup-plugin-node-resolve": "2.0.0",
"rimraf": "2.6.1",
"rollup": "0.41.6",
"rollup-plugin-babel": "2.7.1",
"rollup-plugin-commonjs": "8.0.2",
"rollup-plugin-node-resolve": "3.0.0",
"rollup-plugin-uglify": "1.0.1",
"yargs": "5.0.0"
"yargs": "7.0.2"
},
"peerDependencies": {
"i18next": ">= 6.0.1"
"i18next": ">= 6.0.1",
"react": ">= 15.0.0",
"prop-types": ">= 15.0.0"
},

@@ -60,0 +61,0 @@ "scripts": {

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define('reactI18next', ['exports', 'react'], factory) :
(factory((global.reactI18next = global.reactI18next || {}),global.React));
}(this, (function (exports,React) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types')) :
typeof define === 'function' && define.amd ? define('reactI18next', ['exports', 'react', 'prop-types'], factory) :
(factory((global.reactI18next = global.reactI18next || {}),global.React,global.PropTypes));
}(this, (function (exports,React,PropTypes) { 'use strict';
var React__default = 'default' in React ? React['default'] : React;
PropTypes = 'default' in PropTypes ? PropTypes['default'] : PropTypes;
function interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
var index = createCommonjsModule(function (module) {
/**

@@ -22,4 +14,2 @@ * Copyright 2015, Yahoo! Inc.

*/
'use strict';
var REACT_STATICS = {

@@ -47,3 +37,3 @@ childContextTypes: true,

module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
var index = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) {
if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components

@@ -70,12 +60,19 @@ var keys = Object.getOwnPropertyNames(sourceComponent);

};
});
var hoistStatics = interopDefault(index);
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
var classCallCheck = function (instance, Constructor) {

@@ -105,2 +102,6 @@ if (!(instance instanceof Constructor)) {

var defineProperty = function (obj, key, value) {

@@ -135,2 +136,4 @@ if (key in obj) {

var inherits = function (subClass, superClass) {

@@ -152,2 +155,12 @@ if (typeof superClass !== "function" && superClass !== null) {

var possibleConstructorReturn = function (self, call) {

@@ -161,2 +174,6 @@ if (!self) {

var slicedToArray = function () {

@@ -205,13 +222,13 @@ function sliceIterator(arr, i) {

function translate(namespaces) {
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var _options$withRef = options.withRef;
var withRef = _options$withRef === undefined ? false : _options$withRef;
var _options$wait = options.wait;
var wait = _options$wait === undefined ? false : _options$wait;
var _options$bindI18n = options.bindI18n;
var bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n;
var _options$bindStore = options.bindStore;
var bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore;
var _options$translateFun = options.translateFuncName;
var translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$withRef = options.withRef,
withRef = _options$withRef === undefined ? false : _options$withRef,
_options$wait = options.wait,
wait = _options$wait === undefined ? false : _options$wait,
_options$bindI18n = options.bindI18n,
bindI18n = _options$bindI18n === undefined ? 'languageChanged loaded' : _options$bindI18n,
_options$bindStore = options.bindStore,
bindStore = _options$bindStore === undefined ? 'added removed' : _options$bindStore,
_options$translateFun = options.translateFuncName,
translateFuncName = _options$translateFun === undefined ? 't' : _options$translateFun;

@@ -226,3 +243,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Translate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Translate.__proto__ || Object.getPrototypeOf(Translate)).call(this, props, context));

@@ -324,5 +341,5 @@ _this.i18n = context.i18n || props.i18n;

var _state = this.state;
var i18nLoadedAt = _state.i18nLoadedAt;
var ready = _state.ready;
var _state = this.state,
i18nLoadedAt = _state.i18nLoadedAt,
ready = _state.ready;

@@ -346,6 +363,6 @@ var extraProps = (_extraProps = { i18nLoadedAt: i18nLoadedAt }, defineProperty(_extraProps, translateFuncName, this[translateFuncName]), defineProperty(_extraProps, 'i18n', this.i18n), _extraProps);

Translate.contextTypes = {
i18n: React.PropTypes.object
i18n: PropTypes.object
};
Translate.childContextTypes = defineProperty({}, translateFuncName, React.PropTypes.func.isRequired);
Translate.childContextTypes = defineProperty({}, translateFuncName, PropTypes.func.isRequired);

@@ -356,3 +373,3 @@ Translate.displayName = 'Translate(' + getDisplayName(WrappedComponent) + ')';

return hoistStatics(Translate, WrappedComponent);
return index(Translate, WrappedComponent);
};

@@ -367,3 +384,3 @@ }

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(Interpolate).call(this, props, context));
var _this = possibleConstructorReturn(this, (Interpolate.__proto__ || Object.getPrototypeOf(Interpolate)).call(this, props, context));

@@ -382,5 +399,5 @@ _this.i18n = context.i18n;

var REGEXP = this.props.regexp || this.i18n.services.interpolator.regexp;
var _props = this.props;
var className = _props.className;
var style = _props.style;
var _props = this.props,
className = _props.className,
style = _props.style;

@@ -439,9 +456,9 @@ // Set to true if you want to use raw HTML in translation values

Interpolate.propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string
children: PropTypes.node,
className: PropTypes.string
};
Interpolate.contextTypes = {
i18n: React.PropTypes.object.isRequired,
t: React.PropTypes.func.isRequired
i18n: PropTypes.object.isRequired,
t: PropTypes.func.isRequired
};

@@ -455,3 +472,3 @@

var _this = possibleConstructorReturn(this, Object.getPrototypeOf(I18nextProvider).call(this, props, context));
var _this = possibleConstructorReturn(this, (I18nextProvider.__proto__ || Object.getPrototypeOf(I18nextProvider)).call(this, props, context));

@@ -486,8 +503,8 @@ _this.i18n = props.i18n;

I18nextProvider.propTypes = {
i18n: React.PropTypes.object.isRequired,
children: React.PropTypes.element.isRequired
i18n: PropTypes.object.isRequired,
children: PropTypes.element.isRequired
};
I18nextProvider.childContextTypes = {
i18n: React.PropTypes.object.isRequired
i18n: PropTypes.object.isRequired
};

@@ -506,7 +523,6 @@

for (var _iterator = Object.entries(components[i])[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _step$value = slicedToArray(_step.value, 2);
var _step$value = slicedToArray(_step.value, 2),
key = _step$value[0],
value = _step$value[1];
var key = _step$value[0];
var value = _step$value[1];
iterator(value, i, key);

@@ -536,6 +552,6 @@ }

var flattened = [];
eachComponents(components, function (Component) {
if (Component && Component.namespaces) {
eachComponents(components, function (Component$$1) {
if (Component$$1 && Component$$1.namespaces) {
Component.namespaces.forEach(function (namespace) {
Component$$1.namespaces.forEach(function (namespace) {
if (flattened.indexOf(namespace) === -1) {

@@ -551,4 +567,4 @@ flattened.push(namespace);

function loadNamespaces(_ref) {
var components = _ref.components;
var i18n = _ref.i18n;
var components = _ref.components,
i18n = _ref.i18n;

@@ -569,2 +585,2 @@ var allNamespaces = filterAndFlattenComponents(components);

})));
})));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define("reactI18next",["exports","react"],t):t(e.reactI18next=e.reactI18next||{},e.React)}(this,function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function o(e){return e.displayName||e.name||"Component"}function i(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.withRef,i=void 0!==r&&r,a=n.wait,s=void 0!==a&&a,u=n.bindI18n,c=void 0===u?"languageChanged loaded":u,f=n.bindStore,g=void 0===f?"added removed":f,x=n.translateFuncName,w=void 0===x?"t":x;return function(n){var r=function(t){function r(t,n){d(this,r);var o=b(this,Object.getPrototypeOf(r).call(this,t,n));return o.i18n=n.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return m(r,t),y(r,[{key:"getChildContext",value:function(){return h({},w,this[w])}},{key:"componentWillMount",value:function(){this[w]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){c&&t.i18n.on(c,t.onI18nChanged),g&&t.i18n.store&&t.i18n.store.on(g,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),s&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),s||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(c){var t=c.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(g){var n=g.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return i||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,r=t.i18nLoadedAt,o=t.ready,a=(e={i18nLoadedAt:r},h(e,w,this[w]),h(e,"i18n",this.i18n),e);return i&&(a.ref="wrappedInstance"),!o&&s?null:p.createElement(n,v({},this.props,a))}}]),r}(t.Component);return r.WrappedComponent=n,r.contextTypes={i18n:t.PropTypes.object},r.childContextTypes=h({},w,t.PropTypes.func.isRequired),r.displayName="Translate("+o(n)+")",r.namespaces=e,l(r,n)}}function a(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===f(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=g(s.value,2),c=p[0],l=p[1];t(l,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function s(e){var t=[];return a(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function u(e){var t=e.components,n=e.i18n,r=s(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var p="default"in t?t.default:t,c=r(function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,o,i){if("string"!=typeof o){var a=Object.getOwnPropertyNames(o);r&&(a=a.concat(Object.getOwnPropertySymbols(o)));for(var s=0;s<a.length;++s)if(!(t[a[s]]||n[a[s]]||i&&i[a[s]]))try{e[a[s]]=o[a[s]]}catch(e){}}return e}}),l=n(c),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},b=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},g=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e){function t(e,n){d(this,t);var r=b(this,Object.getPrototypeOf(t).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return m(t,e),y(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",u=v({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,u);if(!c||"string"!=typeof c)return p.createElement("noscript",null);var l=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?p.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},l),p.createElement.apply(this,[t,{className:o,style:i}].concat(l))}}]),t}(t.Component);x.propTypes={children:t.PropTypes.node,className:t.PropTypes.string},x.contextTypes={i18n:t.PropTypes.object.isRequired,t:t.PropTypes.func.isRequired};var w=function(e){function n(e,t){d(this,n);var r=b(this,Object.getPrototypeOf(n).call(this,e,t));return r.i18n=e.i18n,r}return m(n,e),y(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);w.propTypes={i18n:t.PropTypes.object.isRequired,children:t.PropTypes.element.isRequired},w.childContextTypes={i18n:t.PropTypes.object.isRequired},e.loadNamespaces=u,e.translate=i,e.Interpolate=x,e.I18nextProvider=w,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define("reactI18next",["exports","react","prop-types"],t):t(e.reactI18next=e.reactI18next||{},e.React,e.PropTypes)}(this,function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}function o(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.withRef,a=void 0!==i&&i,s=o.wait,p=void 0!==s&&s,c=o.bindI18n,l=void 0===c?"languageChanged loaded":c,d=o.bindStore,w=void 0===d?"added removed":d,x=o.translateFuncName,O=void 0===x?"t":x;return function(o){var i=function(t){function n(t,r){y(this,n);var o=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,r));return o.i18n=r.i18n||t.i18n,e=e||o.i18n.options.defaultNS,o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o}return b(n,t),h(n,[{key:"getChildContext",value:function(){return m({},O,this[O])}},{key:"componentWillMount",value:function(){this[O]=this.i18n.getFixedT(null,e)}},{key:"componentDidMount",value:function(){var t=this,n=function(){l&&t.i18n.on(l,t.onI18nChanged),w&&t.i18n.store&&t.i18n.store.on(w,t.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(e,function(){var e=function(){t.mounted&&t.setState({ready:!0}),p&&t.mounted&&n()};if(t.i18n.isInitialized)return e();var r=function n(){setTimeout(function(){t.i18n.off("initialized",n)},1e3),e()};t.i18n.on("initialized",r)}),p||n()}},{key:"componentWillUnmount",value:function(){var e=this;if(this.mounted=!1,this.onI18nChanged){if(l){var t=l.split(" ");t.forEach(function(t){return e.i18n.off(t,e.onI18nChanged)})}if(w){var n=w.split(" ");n.forEach(function(t){return e.i18n.store&&e.i18n.store.off(t,e.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return a||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var e,t=this.state,n=t.i18nLoadedAt,r=t.ready,i=(e={i18nLoadedAt:n},m(e,O,this[O]),m(e,"i18n",this.i18n),e);return a&&(i.ref="wrappedInstance"),!r&&p?null:u.createElement(o,v({},this.props,i))}}]),n}(t.Component);return i.WrappedComponent=o,i.contextTypes={i18n:n.object},i.childContextTypes=m({},O,n.func.isRequired),i.displayName="Translate("+r(o)+")",i.namespaces=e,f(i,o)}}function i(e,t){for(var n=0,r=e.length;n<r;n++)if("object"===d(e[n])){var o=!0,i=!1,a=void 0;try{for(var s,u=Object.entries(e[n])[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var p=w(s.value,2),c=p[0],l=p[1];t(l,n,c)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}else t(e[n],n)}function a(e){var t=[];return i(e,function(e){e&&e.namespaces&&e.namespaces.forEach(function(e){t.indexOf(e)===-1&&t.push(e)})}),t}function s(e){var t=e.components,n=e.i18n,r=a(t);return new Promise(function(e){n.loadNamespaces(r,e)})}var u="default"in t?t.default:t;n="default"in n?n.default:n;var p={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},c={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},l="function"==typeof Object.getOwnPropertySymbols,f=function(e,t,n){if("string"!=typeof t){var r=Object.getOwnPropertyNames(t);l&&(r=r.concat(Object.getOwnPropertySymbols(t)));for(var o=0;o<r.length;++o)if(!(p[r[o]]||c[r[o]]||n&&n[r[o]]))try{e[r[o]]=t[r[o]]}catch(e){}}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(e){function t(e,n){y(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=n.i18n,r.t=n.t,r}return b(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,o=r.className,i=r.style,a=this.props.useDangerouslySetInnerHTML||!1,s=this.props.dangerouslySetInnerHTMLPartElement||"span",p=v({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),c=this.t(this.props.i18nKey,p);if(!c||"string"!=typeof c)return u.createElement("noscript",null);var l=[],f=function(t,n){if(t.indexOf(e.i18n.options.interpolation.formatSeparator)<0)return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+t+" for interpolating "+c),n[t];var r=t.split(e.i18n.options.interpolation.formatSeparator),o=r.shift().trim(),i=r.join(e.i18n.options.interpolation.formatSeparator).trim();return void 0===n[t]&&e.i18n.services.logger.warn("interpolator: missed to pass in variable "+o+" for interpolating "+c),e.i18n.options.interpolation.format(n[o],i,e.i18n.language)};return c.split(n).reduce(function(t,n,r){var o=void 0;if(r%2===0){if(0===n.length)return t;o=a?u.createElement(s,{dangerouslySetInnerHTML:{__html:n}}):n}else o=f(n,e.props);return t.push(o),t},l),u.createElement.apply(this,[t,{className:o,style:i}].concat(l))}}]),t}(t.Component);x.propTypes={children:n.node,className:n.string},x.contextTypes={i18n:n.object.isRequired,t:n.func.isRequired};var O=function(e){function n(e,t){y(this,n);var r=g(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.i18n=e.i18n,r}return b(n,e),h(n,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return t.Children.only(e)}}]),n}(t.Component);O.propTypes={i18n:n.object.isRequired,children:n.element.isRequired},O.childContextTypes={i18n:n.object.isRequired},e.loadNamespaces=s,e.translate=o,e.Interpolate=x,e.I18nextProvider=O,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -283,3 +283,3 @@ # react-i18next

```
```typescript
import * as i18n from 'i18next'

@@ -297,2 +297,2 @@ import * as XHR from 'i18next-xhr-backend'

export default instance
```
```

@@ -25,3 +25,3 @@ import babel from 'rollup-plugin-babel';

format,
external: ['react'],
external: ['react', 'prop-types'],
plugins: [

@@ -28,0 +28,0 @@ babel(babelOptions),

@@ -1,2 +0,3 @@

import { Component, PropTypes, Children } from 'react';
import { Component, Children } from 'react';
import PropTypes from 'prop-types';

@@ -3,0 +4,0 @@ class I18nextProvider extends Component {

@@ -1,2 +0,3 @@

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

@@ -3,0 +4,0 @@ class Interpolate extends Component {

@@ -1,2 +0,3 @@

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import hoistStatics from 'hoist-non-react-statics';

@@ -3,0 +4,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc