Skip to content

Commit 2aca690

Browse files
committed
Fixed casing for titles
1 parent e37c8ce commit 2aca690

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

api/1.3/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Generator {
145145

146146
let name = this.randomName(this.current.gender, nat);
147147
this.include('name', {
148-
title: this.current.gender === 'male' ? 'mr' : randomItem(this.datasets.common.title),
148+
title: this.current.gender === 'male' ? 'Mr' : randomItem(this.datasets.common.title),
149149
first: name[0],
150150
last: name[1]
151151
});

api/1.3/data/CH/inject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module.exports = (inc, contents) => {
55
delete contents.picture;
66

77
include(inc, contents, 'name', () => {
8-
const femaleTitles = ['mademoiselle', 'madame'];
9-
contents.name.title = contents.gender === 'male' ? 'monsieur' : randomItem(femaleTitles);
8+
const femaleTitles = ['Mademoiselle', 'Madame'];
9+
contents.name.title = contents.gender === 'male' ? 'Monsieur' : randomItem(femaleTitles);
1010
});
1111

1212
include(inc, contents, 'location', () => {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
miss
2-
mrs
3-
ms
1+
Miss
2+
Mrs
3+
Ms

0 commit comments

Comments
 (0)