Skip to content

Commit

Permalink
feat(locale): add ro_MD locale (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer authored May 1, 2023
1 parent a0fb69d commit 08cf1d8
Show file tree
Hide file tree
Showing 42 changed files with 1,578 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ In this example there are 5 locales. Each of these is checked in order, and the
| `pt_BR` | Portuguese (Brazil) | `fakerPT_BR` |
| `pt_PT` | Portuguese (Portugal) | `fakerPT_PT` |
| `ro` | Romanian | `fakerRO` |
| `ro_MD` | Romanian (Moldova) | `fakerRO_MD` |
| `ru` | Russian | `fakerRU` |
| `sk` | Slovak | `fakerSK` |
| `sr_RS_latin` | Serbian (Serbia, Latin) | `fakerSR_RS_latin` |
Expand Down
3 changes: 3 additions & 0 deletions src/locale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { faker as fakerPL } from './pl';
import { faker as fakerPT_BR } from './pt_BR';
import { faker as fakerPT_PT } from './pt_PT';
import { faker as fakerRO } from './ro';
import { faker as fakerRO_MD } from './ro_MD';
import { faker as fakerRU } from './ru';
import { faker as fakerSK } from './sk';
import { faker as fakerSR_RS_latin } from './sr_RS_latin';
Expand Down Expand Up @@ -119,6 +120,7 @@ export {
fakerPT_BR,
fakerPT_PT,
fakerRO,
fakerRO_MD,
fakerRU,
fakerSK,
fakerSR_RS_latin,
Expand Down Expand Up @@ -185,6 +187,7 @@ export const allFakers = {
pt_BR: fakerPT_BR,
pt_PT: fakerPT_PT,
ro: fakerRO,
ro_MD: fakerRO_MD,
ru: fakerRU,
sk: fakerSK,
sr_RS_latin: fakerSR_RS_latin,
Expand Down
14 changes: 14 additions & 0 deletions src/locale/ro_MD.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/

import { Faker } from '../faker';
import base from '../locales/base';
import en from '../locales/en';
import ro from '../locales/ro';
import ro_MD from '../locales/ro_MD';

export const faker = new Faker({
locale: [ro_MD, ro, en, base],
});
1 change: 1 addition & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export { default as pl } from './pl';
export { default as pt_BR } from './pt_BR';
export { default as pt_PT } from './pt_PT';
export { default as ro } from './ro';
export { default as ro_MD } from './ro_MD';
export { default as ru } from './ru';
export { default as sk } from './sk';
export { default as sr_RS_latin } from './sr_RS_latin';
Expand Down
92 changes: 92 additions & 0 deletions src/locales/ro_MD/cell_phone/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
export default [
'0600#####',
'0601#####',
'0602#####',
'0603#####',
'0604#####',
'0605#####',
'0606#####',
'0607#####',
'0608#####',
'0609#####',
'0610#####',
'0611#####',
'0612#####',
'0613#####',
'0614#####',
'0615#####',
'0616#####',
'0617#####',
'0618#####',
'0619#####',
'0620#####',
'0621#####',
'0622#####',
'0623#####',
'0624#####',
'0625#####',
'0626#####',
'0627#####',
'0628#####',
'0629#####',
'0660#####',
'0661#####',
'0662#####',
'0663#####',
'0664#####',
'0665#####',
'0666#####',
'0667#####',
'0668#####',
'0669#####',
'0670#####',
'0671#####',
'0672#####',
'0673#####',
'0674#####',
'0675#####',
'0676#####',
'0677#####',
'0678#####',
'0679#####',
'0680#####',
'0681#####',
'0682#####',
'0683#####',
'0684#####',
'0685#####',
'0686#####',
'0687#####',
'0688#####',
'0689#####',
'0690#####',
'0691#####',
'0692#####',
'0693#####',
'0694#####',
'0695#####',
'0696#####',
'0697#####',
'0698#####',
'0699#####',
'0790#####',
'0791#####',
'0792#####',
'0793#####',
'0794#####',
'0795#####',
'0796#####',
'0797#####',
'0798#####',
'0799#####',
'0780#####',
'0781#####',
'0782#####',
'0783#####',
'0784#####',
'0785#####',
'0786#####',
'0787#####',
'0788#####',
'0789#####',
];
11 changes: 11 additions & 0 deletions src/locales/ro_MD/cell_phone/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import formats from './formats';

const cell_phone = {
formats,
};

export default cell_phone;
14 changes: 14 additions & 0 deletions src/locales/ro_MD/date/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { DateDefinition } from '../../..';
import month from './month';
import weekday from './weekday';

const date: DateDefinition = {
month,
weekday,
};

export default date;
30 changes: 30 additions & 0 deletions src/locales/ro_MD/date/month.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
export default {
wide: [
'Ianuarie',
'Februarie',
'Martie',
'Aprilie',
'Mai',
'Iunie',
'Iulie',
'August',
'Septembrie',
'Octombrie',
'Noiembrie',
'Decembrie',
],
abbr: [
'Ian',
'Feb',
'Mar',
'Apr',
'Mai',
'Iun',
'Iul',
'Aug',
'Sep',
'Oct',
'Noi',
'Dec',
],
};
4 changes: 4 additions & 0 deletions src/locales/ro_MD/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
wide: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'],
abbr: ['Lu', 'Ma', 'Mi', 'Jo', 'Vi', 'Sâ', 'Du'],
};
24 changes: 24 additions & 0 deletions src/locales/ro_MD/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import cell_phone from './cell_phone';
import date from './date';
import internet from './internet';
import location from './location';
import metadata from './metadata';
import person from './person';
import phone_number from './phone_number';

const ro_MD: LocaleDefinition = {
cell_phone,
date,
internet,
location,
metadata,
person,
phone_number,
};

export default ro_MD;
8 changes: 8 additions & 0 deletions src/locales/ro_MD/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
'com',
'ru',
'net',
'org',
// Moldavian
'md',
];
9 changes: 9 additions & 0 deletions src/locales/ro_MD/internet/free_email.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default [
'mail.ru',
'rambler.ru',
'yandex.ru',
'gmail.com',
'gmail.ru',
'yahoo.com',
'hotmail.com',
];
14 changes: 14 additions & 0 deletions src/locales/ro_MD/internet/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { InternetDefinition } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';

const internet: InternetDefinition = {
domain_suffix,
free_email,
};

export default internet;
1 change: 1 addition & 0 deletions src/locales/ro_MD/location/building_number.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Bloc ##', 'Bloc ##/##'];
4 changes: 4 additions & 0 deletions src/locales/ro_MD/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{location.city_prefix}} {{person.firstName}}',
'{{location.city_name}}',
];
95 changes: 95 additions & 0 deletions src/locales/ro_MD/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
export default [
'Anenii Noi',
'Basarabeasca',
'Bender',
'Briceni',
'Bălți',
'Cahul',
'Ceadîr-Lunga',
'Chișinău',
'Cimișlia',
'Cocieri',
'Codru',
'Comrat',
'Criuleni',
'Călărași',
'Căușeni',
'Dnestrovsc',
'Dondușeni',
'Drochia',
'Dubăsari',
'Dumbrava',
'Edineț',
'Florești',
'Fălești',
'Glodeni',
'Grigoriopol',
'Hîncești',
'Ialoveni',
'Iargara',
'Leova',
'Nisporeni',
'Ocnița',
'Orhei',
'Otaci',
'Rezina',
'Rîbnița',
'Sadaclia',
'Sadaclia Mică',
'Sadaclia Nouă',
'Saharna',
'Saharna Nouă',
'Saharna Veche',
'Salcia',
'Seliște',
'Sipoteni',
'Sipoteni Noui',
'Slobozia Mare',
'Soroca',
'Strășeni',
'Stăuceni',
'Susleni',
'Suvorovca',
'Sîngerei',
'Talmaza',
'Taraclia',
'Taraclia de Salcie',
'Telenesti',
'Tigheci',
'Tiraspol',
'Tocuz',
'Tocuzeni',
'Tomai',
'Trebisăuți',
'Tvardița',
'Tătărășeni',
'Ungheni',
'Vadul lui Isac',
'Vadul lui Voda',
'Vaduleni',
'Valea Coloniței',
'Valea Perjei',
'Varnița',
'Varvareuca',
'Vatra',
'Verdești',
'Veverița',
'Volintiri',
'Vulcănești',
'Zagarancea',
'Zaicana',
'Zaim',
'Zamciogi',
'Zgurița',
'Zgărdești',
'Zirnesti',
'Zolonceni',
'Zârnești',
'Zîrnești',
'Zăbriceni',
'Zăicani',
'Zăluceni',
'Zăticeni',
'Șofrîncani',
'Ștefan Vodă',
];
1 change: 1 addition & 0 deletions src/locales/ro_MD/location/city_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['Raionul', 'Municipiu'];
Loading

0 comments on commit 08cf1d8

Please sign in to comment.