core/locales/index.js
function Locales() {

    var _require = function(path) {
        var cacheless = (process.env.IS_CACHELESS == 'false') ? false : true;
        if (cacheless) {
            try {
                delete require.cache[require.resolve(path)];
                return require(path)
            } catch (err) {
                throw err
            }

        } else {
            return require(path)
        }
    }

    /**
     * init
     *
     * return {array} regions collection
     * */
    var init  = function () {

        var dir         = __dirname + '/dist/region' // regions by language
            , files     = fs.readdirSync(dir)
            , i         = 0
            , key       = null
            , regions   = []
        ;

        for (var f = 0, len = files.length; f < len; ++f) {
            if ( ! /^\./.test(files[f]) || f == len-1 ) {
                key         = files[f].split(/\./)[0];
                regions[i]  = { lang: key, content: _require( dir + '/' + files[f] ) }
            }
        }


        return regions
    }
    

    return init()
}
function Locales() {

    var _require = function(path) {
        var cacheless = (process.env.IS_CACHELESS == 'false') ? false : true;
        if (cacheless) {
            try {
                delete require.cache[require.resolve(path)];
                return require(path)
            } catch (err) {
                throw err
            }

        } else {
            return require(path)
        }
    }

    /**
     * init
     *
     * return {array} regions collection
     * */
    var init  = function () {

        var dir         = __dirname + '/dist/region' // regions by language
            , files     = fs.readdirSync(dir)
            , i         = 0
            , key       = null
            , regions   = []
        ;

        for (var f = 0, len = files.length; f < len; ++f) {
            if ( ! /^\./.test(files[f]) || f == len-1 ) {
                key         = files[f].split(/\./)[0];
                regions[i]  = { lang: key, content: _require( dir + '/' + files[f] ) }
            }
        }


        return regions
    }
    

    return init()
}
function Locales ( ) { var _require = function ( path ) { var cacheless = ( process . env . IS_CACHELESS == 'false' ) ? false : true ; if ( cacheless ) { try { delete require . cache [ require . resolve ( path ) ] ; return require ( path ) } catch ( err ) { throw err } } else { return require ( path ) } } /**
     * init
     *
     * return {array} regions collection
     * */ var init = function ( ) { var dir = __dirname + '/dist/region' // regions by language , files = fs . readdirSync ( dir ) , i = 0 , key = null , regions = [ ] ; for ( var f = 0 , len = files . length ; f < len ; ++ f ) { if ( ! / ^\. / . test ( files [ f ] ) || f == len - 1 ) { key = files [ f ] . split ( / \. / ) [ 0 ] ; regions [ i ] = { lang : key , content : _require ( dir + '/' + files [ f ] ) } } } return regions } return init ( ) }
Gina.Core.Locales Class

@package    Gina.Core
@author     Rhinostone <gina@rhinostone.com>
Gina . Core . Locales Class