Skip to content

Commit

Permalink
Merge branch 'next' into fix/el-cities
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored May 1, 2023
2 parents 8e64482 + 7f9e9df commit 6b61743
Show file tree
Hide file tree
Showing 52 changed files with 1,603 additions and 16 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],
});
2 changes: 1 addition & 1 deletion src/locales/en_AU_ocker/location/city_pattern.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['{{location.city_prefix}}'];
export default ['{{location.city_name}}'];
4 changes: 2 additions & 2 deletions src/locales/en_AU_ocker/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/
import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import default_country from './default_country';
import postcode from './postcode';
import region from './region';
Expand All @@ -17,8 +17,8 @@ import street_suffix from './street_suffix';

const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
city_prefix,
default_country,
postcode,
region,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/locales/en_NG/location/city_pattern.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['{{location.city_prefix}}'];
export default ['{{location.city_name}}'];
4 changes: 2 additions & 2 deletions src/locales/en_NG/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
city_prefix,
default_country,
postcode,
state,
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/locales/en_ZA/location/city_pattern.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default ['{{location.city_prefix}}'];
export default ['{{location.city_name}}'];
4 changes: 2 additions & 2 deletions src/locales/en_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import default_country from './default_country';
import postcode from './postcode';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
city_prefix,
default_country,
postcode,
state,
Expand Down
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}}',
];
Loading

0 comments on commit 6b61743

Please sign in to comment.