cjs/react.development.js
/*
 * I18nPublisher - Connects to lingui-i18n/I18n class
 * Allows listeners to subscribe for changes
 */
Connects to lingui-i18n/I18n class
Allows listeners to subscribe for changes
Connects to lingui - i18n / I18n class Allows listeners to subscribe for changes
function makeLinguiPublisher(i18n) {
  var subscribers = [];
  return {
    i18n: i18n,
    i18nHash: null,
    getSubscribers: function getSubscribers() {
      return subscribers;
    },
    subscribe: function subscribe(callback) {
      subscribers.push(callback);
    },
    unsubscribe: function unsubscribe(callback) {
      subscribers = subscribers.filter(function (cb) {
        return cb !== callback;
      });
    },
    update: function update() {
      var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      if (!params) return;
      var catalogs = params.catalogs,
          language = params.language,
          locales = params.locales;
      if (!catalogs && !language && !locales) return;
      if (catalogs) i18n.load(catalogs);
      if (language) i18n.activate(language, locales);
      this.i18nHash = hashSum([i18n.language, i18n.messages]);
      subscribers.forEach(function (f) {
        return f();
      });
    }
  };
}
function makeLinguiPublisher ( i18n ) { var subscribers = [ ] ; return { i18n : i18n , i18nHash : null , getSubscribers : function getSubscribers ( ) { return subscribers ; } , subscribe : function subscribe ( callback ) { subscribers . push ( callback ) ; } , unsubscribe : function unsubscribe ( callback ) { subscribers = subscribers . filter ( function ( cb ) { return cb !== callback ; } ) ; } , update : function update ( ) { var params = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ; if ( ! params ) return ; var catalogs = params . catalogs , language = params . language , locales = params . locales ; if ( ! catalogs && ! language && ! locales ) return ; if ( catalogs ) i18n . load ( catalogs ) ; if ( language ) i18n . activate ( language , locales ) ; this . i18nHash = hashSum ( [ i18n . language , i18n . messages ] ) ; subscribers . forEach ( function ( f ) { return f ( ) ; } ) ; } } ; }
I18nPublisher - Connects to lingui-i18n/I18n class
 Allows listeners to subscribe for changes
I18nPublisher - Connects to lingui - i18n / I18n class Allows listeners to subscribe for changes