Skip to content

Commit

Permalink
[api] First pass at adding localization data definitions. #116
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Sep 14, 2014
1 parent e9385ef commit 0048b9f
Show file tree
Hide file tree
Showing 29 changed files with 39,157 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ exports.Date = require('./lib/date');
exports.random = require('./lib/random');
exports.definitions = require('./lib/definitions');
exports.Finance = require('./lib/finance');

exports.locales = require('./lib/locales');
6 changes: 6 additions & 0 deletions lib/locales.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var fs = require('fs'),
files = fs.readdirSync(__dirname + '/locales/');

files.forEach(function(item){
exports[item.replace('.js', '')] = require(__dirname + '/locales/' + item);
});
Loading

0 comments on commit 0048b9f

Please sign in to comment.