core/i18n.js
function read(myLocale) {
    locales[myLocale] = {};
    try {
        locales[myLocale] = JSON.parse(fs.readFileSync(locate(myLocale)));
    } catch(e) {
        console.log('initializing ' + locate(myLocale));
        write(myLocale);
    }
}
function read(myLocale) {
    locales[myLocale] = {};
    try {
        locales[myLocale] = JSON.parse(fs.readFileSync(locate(myLocale)));
    } catch(e) {
        console.log('initializing ' + locate(myLocale));
        write(myLocale);
    }
}
function read ( myLocale ) { locales [ myLocale ] = { } ; try { locales [ myLocale ] = JSON . parse ( fs . readFileSync ( locate ( myLocale ) ) ) ; } catch ( e ) { console . log ( 'initializing ' + locate ( myLocale ) ) ; write ( myLocale ) ; } }
try reading a file
try reading a file