function preparePages(output) {
    var book = output.getBook();
    var logger = book.getLogger();

    if (book.isMultilingual()) {
        return Promise(output);
    }

    return Parse.parsePagesList(book)
    .then(function(pages) {
        logger.info.ln('found', pages.size, 'pages');

        return output.set('pages', pages);
    });
}
function preparePages(output) {
    var book = output.getBook();
    var logger = book.getLogger();

    if (book.isMultilingual()) {
        return Promise(output);
    }

    return Parse.parsePagesList(book)
    .then(function(pages) {
        logger.info.ln('found', pages.size, 'pages');

        return output.set('pages', pages);
    });
}
function preparePages ( output ) { var book = output . getBook ( ) ; var logger = book . getLogger ( ) ; if ( book . isMultilingual ( ) ) { return Promise ( output ) ; } return Parse . parsePagesList ( book ) . then ( function ( pages ) { logger . info . ln ( 'found' , pages . size , 'pages' ) ; return output . set ( 'pages' , pages ) ; } ) ; }
List and prepare all pages

@param {Output}
@return {Promise<Output>}
List and prepare all pages
Prepare pages for a new language