src/build.js
function linkLocales() {
    return listFiles('locales')
        .then(filter(test(/^[a-z]{2}(_[A-Z]{2,3})?\.json$/)) & map(path.join('locales', _)))
        .filter(location => fs.readFileAsync(location)
            .then(JSON.parse & is(Object))
            .catchReturn(false))
        .catchReturn([]);
}
function linkLocales() {
    return listFiles('locales')
        .then(filter(test(/^[a-z]{2}(_[A-Z]{2,3})?\.json$/)) & map(path.join('locales', _)))
        .filter(location => fs.readFileAsync(location)
            .then(JSON.parse & is(Object))
            .catchReturn(false))
        .catchReturn([]);
}
function linkLocales ( ) { return listFiles ( 'locales' ) . then ( filter ( test ( / ^[a-z]{2}(_[A-Z]{2,3})?\.json$ / ) ) & map ( path . join ( 'locales' , _ ) ) ) . filter ( location => fs . readFileAsync ( location ) . then ( JSON . parse & is ( Object ) ) . catchReturn ( false ) ) . catchReturn ( [ ] ) ; }
Links locale files

@return {Promise}
Links locale files