src/build.js
function localesToPairs(localeFiles) {
    return all(localeFiles.map(localeFile => fs.readFileAsync(localeFile, 'utf-8')
        .then(JSON.parse)
        .then(json => [localeByFile(localeFile), json])));
}
function localesToPairs(localeFiles) {
    return all(localeFiles.map(localeFile => fs.readFileAsync(localeFile, 'utf-8')
        .then(JSON.parse)
        .then(json => [localeByFile(localeFile), json])));
}
function localesToPairs ( localeFiles ) { return all ( localeFiles . map ( localeFile => fs . readFileAsync ( localeFile , 'utf-8' ) . then ( JSON . parse ) . then ( json => [ localeByFile ( localeFile ) , json ] ) ) ) ; }
Converts a list of locale files to pairs containing locale string and content

@param {String[]} localeFiles
@return {Promise}
Converts a list of locale files to pairs containing locale string and content