Example #1
0
  onBeforeStart: function(){
    debug( 'starting WooCommerce POS admin app' );

    // i18n
    polyglot.extend(this.options.i18n);

    // bootstrap accounting settings
    accounting.settings = this.options.accounting;
  },
Example #2
0
 .then(function(data){
   data = data || {};
   params = _.extend({ wc_api: wc_api }, data.params );
   accounting.settings = params.accounting;
   bb.emulateHTTP = params.emulateHTTP || false;
   initDebug( params.debug );
   templateCache( data );
   polyglot.extend(data.i18n);
 })