public function setData( array $data, bool $doReload = true )
   {

      $this->logInfo( 'Manual set new data' . ( $doReload ? ' and reload.' : '.' ), __CLASS__ );

      $this->_options[ 'data' ] = $data;

      if ( $doReload )
      {
         $this->reload();
      }

      return $this;

   }
public function setData( array $data, bool $doReload = true )
   {

      $this->logInfo( 'Manual set new data' . ( $doReload ? ' and reload.' : '.' ), __CLASS__ );

      $this->_options[ 'data' ] = $data;

      if ( $doReload )
      {
         $this->reload();
      }

      return $this;

   }
public function setData ( array $ data , bool $ doReload = true ) { $ this -> logInfo ( 'Manual set new data' . ( $ doReload ? ' and reload.' : '.' ) , __CLASS__ ) ; $ this -> _options [ 'data' ] = $ data ; if ( $ doReload ) { $ this -> reload ( ) ; } return $ this ; }
Sets a new array with translation data that should be used.

The array keys are the identifiers (string|int) the values must be arrays with items 'text' and optionally
with 'category' or the values is a string that will be converted to [ 'text' => $value ]

@param array $data
@param bool  $doReload
@return \Niirrty\Translation\Sources\AbstractFileSource
Sets a new array with translation data that should be used .