public static function generate(Translations $translations, array $options = [])
    {
        $options += static::$options;

        return self::toArray($translations, $options['includeHeaders'], true);
    }
public static function generate(Translations $translations, array $options = [])
    {
        $options += static::$options;

        return self::toArray($translations, $options['includeHeaders'], true);
    }
public static function generate ( Translations $ translations , array $ options = [ ] ) { $ options += static :: $ options ; return self :: toArray ( $ translations , $ options [ 'includeHeaders' ] , true ) ; }
Generates an array with the translations.

@param Translations $translations
@param array        $options

@return array
Generates an array with the translations .