Skip to content

Commit 4e9f346

Browse files
authored
Merge branch 'next' into fix/remove-sk-city-suffix-prefix
2 parents da0b264 + 7f9e9df commit 4e9f346

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1603
-16
lines changed

docs/guide/localization.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
125125
| `pt_BR` | Portuguese (Brazil) | `fakerPT_BR` |
126126
| `pt_PT` | Portuguese (Portugal) | `fakerPT_PT` |
127127
| `ro` | Romanian | `fakerRO` |
128+
| `ro_MD` | Romanian (Moldova) | `fakerRO_MD` |
128129
| `ru` | Russian | `fakerRU` |
129130
| `sk` | Slovak | `fakerSK` |
130131
| `sr_RS_latin` | Serbian (Serbia, Latin) | `fakerSR_RS_latin` |

src/locale/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { faker as fakerPL } from './pl';
5454
import { faker as fakerPT_BR } from './pt_BR';
5555
import { faker as fakerPT_PT } from './pt_PT';
5656
import { faker as fakerRO } from './ro';
57+
import { faker as fakerRO_MD } from './ro_MD';
5758
import { faker as fakerRU } from './ru';
5859
import { faker as fakerSK } from './sk';
5960
import { faker as fakerSR_RS_latin } from './sr_RS_latin';
@@ -119,6 +120,7 @@ export {
119120
fakerPT_BR,
120121
fakerPT_PT,
121122
fakerRO,
123+
fakerRO_MD,
122124
fakerRU,
123125
fakerSK,
124126
fakerSR_RS_latin,
@@ -185,6 +187,7 @@ export const allFakers = {
185187
pt_BR: fakerPT_BR,
186188
pt_PT: fakerPT_PT,
187189
ro: fakerRO,
190+
ro_MD: fakerRO_MD,
188191
ru: fakerRU,
189192
sk: fakerSK,
190193
sr_RS_latin: fakerSR_RS_latin,

src/locale/ro_MD.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
6+
import { Faker } from '../faker';
7+
import base from '../locales/base';
8+
import en from '../locales/en';
9+
import ro from '../locales/ro';
10+
import ro_MD from '../locales/ro_MD';
11+
12+
export const faker = new Faker({
13+
locale: [ro_MD, ro, en, base],
14+
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ['{{location.city_prefix}}'];
1+
export default ['{{location.city_name}}'];

src/locales/en_AU_ocker/location/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*/
55
import type { LocationDefinition } from '../../..';
66
import building_number from './building_number';
7+
import city_name from './city_name';
78
import city_pattern from './city_pattern';
8-
import city_prefix from './city_prefix';
99
import default_country from './default_country';
1010
import postcode from './postcode';
1111
import region from './region';
@@ -17,8 +17,8 @@ import street_suffix from './street_suffix';
1717

1818
const location: LocationDefinition = {
1919
building_number,
20+
city_name,
2021
city_pattern,
21-
city_prefix,
2222
default_country,
2323
postcode,
2424
region,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ['{{location.city_prefix}}'];
1+
export default ['{{location.city_name}}'];

src/locales/en_NG/location/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LocationDefinition } from '../../..';
6+
import city_name from './city_name';
67
import city_pattern from './city_pattern';
7-
import city_prefix from './city_prefix';
88
import default_country from './default_country';
99
import postcode from './postcode';
1010
import state from './state';
1111
import street_pattern from './street_pattern';
1212

1313
const location: LocationDefinition = {
14+
city_name,
1415
city_pattern,
15-
city_prefix,
1616
default_country,
1717
postcode,
1818
state,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default ['{{location.city_prefix}}'];
1+
export default ['{{location.city_name}}'];

src/locales/en_ZA/location/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LocationDefinition } from '../../..';
6+
import city_name from './city_name';
67
import city_pattern from './city_pattern';
7-
import city_prefix from './city_prefix';
88
import default_country from './default_country';
99
import postcode from './postcode';
1010
import state from './state';
1111
import street_pattern from './street_pattern';
1212

1313
const location: LocationDefinition = {
14+
city_name,
1415
city_pattern,
15-
city_prefix,
1616
default_country,
1717
postcode,
1818
state,

src/locales/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export { default as pl } from './pl';
5454
export { default as pt_BR } from './pt_BR';
5555
export { default as pt_PT } from './pt_PT';
5656
export { default as ro } from './ro';
57+
export { default as ro_MD } from './ro_MD';
5758
export { default as ru } from './ru';
5859
export { default as sk } from './sk';
5960
export { default as sr_RS_latin } from './sr_RS_latin';
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
export default [
2+
'0600#####',
3+
'0601#####',
4+
'0602#####',
5+
'0603#####',
6+
'0604#####',
7+
'0605#####',
8+
'0606#####',
9+
'0607#####',
10+
'0608#####',
11+
'0609#####',
12+
'0610#####',
13+
'0611#####',
14+
'0612#####',
15+
'0613#####',
16+
'0614#####',
17+
'0615#####',
18+
'0616#####',
19+
'0617#####',
20+
'0618#####',
21+
'0619#####',
22+
'0620#####',
23+
'0621#####',
24+
'0622#####',
25+
'0623#####',
26+
'0624#####',
27+
'0625#####',
28+
'0626#####',
29+
'0627#####',
30+
'0628#####',
31+
'0629#####',
32+
'0660#####',
33+
'0661#####',
34+
'0662#####',
35+
'0663#####',
36+
'0664#####',
37+
'0665#####',
38+
'0666#####',
39+
'0667#####',
40+
'0668#####',
41+
'0669#####',
42+
'0670#####',
43+
'0671#####',
44+
'0672#####',
45+
'0673#####',
46+
'0674#####',
47+
'0675#####',
48+
'0676#####',
49+
'0677#####',
50+
'0678#####',
51+
'0679#####',
52+
'0680#####',
53+
'0681#####',
54+
'0682#####',
55+
'0683#####',
56+
'0684#####',
57+
'0685#####',
58+
'0686#####',
59+
'0687#####',
60+
'0688#####',
61+
'0689#####',
62+
'0690#####',
63+
'0691#####',
64+
'0692#####',
65+
'0693#####',
66+
'0694#####',
67+
'0695#####',
68+
'0696#####',
69+
'0697#####',
70+
'0698#####',
71+
'0699#####',
72+
'0790#####',
73+
'0791#####',
74+
'0792#####',
75+
'0793#####',
76+
'0794#####',
77+
'0795#####',
78+
'0796#####',
79+
'0797#####',
80+
'0798#####',
81+
'0799#####',
82+
'0780#####',
83+
'0781#####',
84+
'0782#####',
85+
'0783#####',
86+
'0784#####',
87+
'0785#####',
88+
'0786#####',
89+
'0787#####',
90+
'0788#####',
91+
'0789#####',
92+
];

src/locales/ro_MD/cell_phone/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import formats from './formats';
6+
7+
const cell_phone = {
8+
formats,
9+
};
10+
11+
export default cell_phone;

src/locales/ro_MD/date/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { DateDefinition } from '../../..';
6+
import month from './month';
7+
import weekday from './weekday';
8+
9+
const date: DateDefinition = {
10+
month,
11+
weekday,
12+
};
13+
14+
export default date;

src/locales/ro_MD/date/month.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
export default {
2+
wide: [
3+
'Ianuarie',
4+
'Februarie',
5+
'Martie',
6+
'Aprilie',
7+
'Mai',
8+
'Iunie',
9+
'Iulie',
10+
'August',
11+
'Septembrie',
12+
'Octombrie',
13+
'Noiembrie',
14+
'Decembrie',
15+
],
16+
abbr: [
17+
'Ian',
18+
'Feb',
19+
'Mar',
20+
'Apr',
21+
'Mai',
22+
'Iun',
23+
'Iul',
24+
'Aug',
25+
'Sep',
26+
'Oct',
27+
'Noi',
28+
'Dec',
29+
],
30+
};

src/locales/ro_MD/date/weekday.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
wide: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'],
3+
abbr: ['Lu', 'Ma', 'Mi', 'Jo', 'Vi', 'Sâ', 'Du'],
4+
};

src/locales/ro_MD/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { LocaleDefinition } from '../..';
6+
import cell_phone from './cell_phone';
7+
import date from './date';
8+
import internet from './internet';
9+
import location from './location';
10+
import metadata from './metadata';
11+
import person from './person';
12+
import phone_number from './phone_number';
13+
14+
const ro_MD: LocaleDefinition = {
15+
cell_phone,
16+
date,
17+
internet,
18+
location,
19+
metadata,
20+
person,
21+
phone_number,
22+
};
23+
24+
export default ro_MD;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export default [
2+
'com',
3+
'ru',
4+
'net',
5+
'org',
6+
// Moldavian
7+
'md',
8+
];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default [
2+
'mail.ru',
3+
'rambler.ru',
4+
'yandex.ru',
5+
'gmail.com',
6+
'gmail.ru',
7+
'yahoo.com',
8+
'hotmail.com',
9+
];

src/locales/ro_MD/internet/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { InternetDefinition } from '../../..';
6+
import domain_suffix from './domain_suffix';
7+
import free_email from './free_email';
8+
9+
const internet: InternetDefinition = {
10+
domain_suffix,
11+
free_email,
12+
};
13+
14+
export default internet;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['Bloc ##', 'Bloc ##/##'];

src/locales/ro_MD/location/city.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default [
2+
'{{location.city_prefix}} {{person.firstName}}',
3+
'{{location.city_name}}',
4+
];

0 commit comments

Comments
 (0)