Skip to content

Commit 34e9a30

Browse files
authored
Merge pull request #189 from olesh0/feature/add-Ukrainian-data
add Ukrainian data
2 parents e9dce01 + f808fa2 commit 34e9a30

File tree

8 files changed

+9590
-0
lines changed

8 files changed

+9590
-0
lines changed

api/.nextRelease/api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ class Generator {
397397
NZ: "New Zealand",
398398
TR: "Turkey",
399399
US: "United States",
400+
UA: "Ukrainian",
400401
};
401402
return mapping[nat];
402403
}

api/.nextRelease/data/UA/inject.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const {random, randomItem, include,} = require('../../api');
2+
3+
module.exports = (inc, contents) => {
4+
const mobileProviders = ['66', '67', '68', '96', '97', '98', '99'];
5+
6+
const pic = contents.picture;
7+
delete contents.picture;
8+
9+
include(inc, contents, 'phone', '(0' + randomItem(mobileProviders) + ') ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
10+
include(inc, contents, 'cell', '(0' + randomItem(mobileProviders) + ') ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
11+
include(inc, contents, 'id', {
12+
name: '',
13+
value: null
14+
});
15+
include(inc, contents, 'picture', pic);
16+
};

0 commit comments

Comments
 (0)