Skip to content

Commit

Permalink
Adding en_IE (Ireland) locale resolves #235
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gallagher committed Jul 9, 2015
1 parent 3613c15 commit 7273fe2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 8 additions & 10 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,7 +104,6 @@ This will interpolate the format string with the value of methods `name.lastName
* ingverb
* phrase
* helpers
* randomNumber
* randomize
* slugify
* replaceSymbolWithNumber
Expand Down Expand Up @@ -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

Expand All @@ -198,6 +195,7 @@ faker.locale = "de";
* en_BORK
* en_CA
* en_GB
* en_IE
* en_IND
* en_US
* en_au_ocker
Expand Down
1 change: 0 additions & 1 deletion lib/locales/en_IE/address/index.js
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit 7273fe2

Please sign in to comment.