diff options
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/index.js b/lib/index.js index c071c3fd..58f0012e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -146,6 +146,10 @@ function Faker (opts) { }; +Faker.prototype.setLocale = function (locale) { + this.locale = locale; +} + Faker.prototype.seed = function(value) { var Random = require('./random'); this.seedValue = value; |
