Skip to content

Commit 08cf1d8

Browse files
authored
feat(locale): add ro_MD locale (#2084)
1 parent a0fb69d commit 08cf1d8

Some content is hidden

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

42 files changed

+1578
-3
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+
});

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+
];
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
export default [
2+
'Anenii Noi',
3+
'Basarabeasca',
4+
'Bender',
5+
'Briceni',
6+
'Bălți',
7+
'Cahul',
8+
'Ceadîr-Lunga',
9+
'Chișinău',
10+
'Cimișlia',
11+
'Cocieri',
12+
'Codru',
13+
'Comrat',
14+
'Criuleni',
15+
'Călărași',
16+
'Căușeni',
17+
'Dnestrovsc',
18+
'Dondușeni',
19+
'Drochia',
20+
'Dubăsari',
21+
'Dumbrava',
22+
'Edineț',
23+
'Florești',
24+
'Fălești',
25+
'Glodeni',
26+
'Grigoriopol',
27+
'Hîncești',
28+
'Ialoveni',
29+
'Iargara',
30+
'Leova',
31+
'Nisporeni',
32+
'Ocnița',
33+
'Orhei',
34+
'Otaci',
35+
'Rezina',
36+
'Rîbnița',
37+
'Sadaclia',
38+
'Sadaclia Mică',
39+
'Sadaclia Nouă',
40+
'Saharna',
41+
'Saharna Nouă',
42+
'Saharna Veche',
43+
'Salcia',
44+
'Seliște',
45+
'Sipoteni',
46+
'Sipoteni Noui',
47+
'Slobozia Mare',
48+
'Soroca',
49+
'Strășeni',
50+
'Stăuceni',
51+
'Susleni',
52+
'Suvorovca',
53+
'Sîngerei',
54+
'Talmaza',
55+
'Taraclia',
56+
'Taraclia de Salcie',
57+
'Telenesti',
58+
'Tigheci',
59+
'Tiraspol',
60+
'Tocuz',
61+
'Tocuzeni',
62+
'Tomai',
63+
'Trebisăuți',
64+
'Tvardița',
65+
'Tătărășeni',
66+
'Ungheni',
67+
'Vadul lui Isac',
68+
'Vadul lui Voda',
69+
'Vaduleni',
70+
'Valea Coloniței',
71+
'Valea Perjei',
72+
'Varnița',
73+
'Varvareuca',
74+
'Vatra',
75+
'Verdești',
76+
'Veverița',
77+
'Volintiri',
78+
'Vulcănești',
79+
'Zagarancea',
80+
'Zaicana',
81+
'Zaim',
82+
'Zamciogi',
83+
'Zgurița',
84+
'Zgărdești',
85+
'Zirnesti',
86+
'Zolonceni',
87+
'Zârnești',
88+
'Zîrnești',
89+
'Zăbriceni',
90+
'Zăicani',
91+
'Zăluceni',
92+
'Zăticeni',
93+
'Șofrîncani',
94+
'Ștefan Vodă',
95+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['Raionul', 'Municipiu'];

0 commit comments

Comments
 (0)