diff options
| author | Barry Gallagher <[email protected]> | 2015-07-09 21:02:33 +0100 |
|---|---|---|
| committer | Barry Gallagher <[email protected]> | 2015-07-09 21:02:33 +0100 |
| commit | 7273fe24dfa4f09e426d97fac97a51e2284dd1ed (patch) | |
| tree | a0f6152a4c2fbf982b893538d9d8b8ffaa8015ab | |
| parent | 3613c15c3eb4e068e3c2ba0550aad4ead2aa6093 (diff) | |
| download | faker-7273fe24dfa4f09e426d97fac97a51e2284dd1ed.tar.xz faker-7273fe24dfa4f09e426d97fac97a51e2284dd1ed.zip | |
Adding en_IE (Ireland) locale resolves #235
| -rw-r--r-- | Readme.md | 18 | ||||
| -rw-r--r-- | lib/locales/en_IE/address/index.js | 1 |
2 files changed, 8 insertions, 11 deletions
@@ -31,21 +31,19 @@ ## API -### Faker.fake() +## Faker.fake() Generator -As of version `v3.0.0` faker.js contains a super useful generator method `Faker.fake` for combining faker API methods using a mustache string format. +As of version `v3.0.0` faker.js contains a super useful generator method for combining faker methods using a mustache string format. -**Example:** +Example: -``` js -console.log(faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}')); +```js +console.log(faker.fake(', ')); // outputs: "Marks, Dean Sr." ``` This will interpolate the format string with the value of methods `name.lastName()`, `name.firstName()`, and `name.suffix()` -### API Methods - * address * zipCode * city @@ -106,7 +104,6 @@ This will interpolate the format string with the value of methods `name.lastName * ingverb * phrase * helpers - * randomNumber * randomize * slugify * replaceSymbolWithNumber @@ -171,8 +168,8 @@ This will interpolate the format string with the value of methods `name.lastName * phoneFormats * random * number - * array_element - * object_element + * arrayElement + * objectElement * uuid * boolean @@ -198,6 +195,7 @@ faker.locale = "de"; * en_BORK * en_CA * en_GB + * en_IE * en_IND * en_US * en_au_ocker diff --git a/lib/locales/en_IE/address/index.js b/lib/locales/en_IE/address/index.js index 5e6e83c9..852d3b86 100644 --- a/lib/locales/en_IE/address/index.js +++ b/lib/locales/en_IE/address/index.js @@ -1,5 +1,4 @@ var address = {}; module['exports'] = address; address.county = require("./county"); -address.ireland_country = require("./ireland_country"); address.default_country = require("./default_country"); |
