Skip to content

Commit

Permalink
feat(locale): Add locale ro_MD
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirica Gheorghe committed Feb 16, 2023
1 parent e7230f6 commit 0800610
Show file tree
Hide file tree
Showing 38 changed files with 1,684 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ However, in most cases, using a specific locale will be beneficial in the long t
| pt_BR | Portuguese (Brazil) |
| pt_PT | Portuguese (Portugal) |
| ro | Romanian |
| ro_MD | Romanian (Moldova) |
| ru | Russian |
| sk | Slovakian |
| sv | Swedish |
Expand Down
17 changes: 17 additions & 0 deletions src/locale/ro_MD.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/

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

export const faker = new Faker({
locale: 'ro_MD',
localeFallback: 'en',
locales: {
ro_MD,
en,
},
});
3 changes: 3 additions & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import pl from './pl';
import pt_BR from './pt_BR';
import pt_PT from './pt_PT';
import ro from './ro';
import ro_MD from './ro_MD';
import ru from './ru';
import sk from './sk';
import sv from './sv';
Expand Down Expand Up @@ -114,6 +115,7 @@ export type KnownLocale =
| 'pt_BR'
| 'pt_PT'
| 'ro'
| 'ro_MD'
| 'ru'
| 'sk'
| 'sv'
Expand Down Expand Up @@ -177,6 +179,7 @@ const locales: KnownLocales = {
pt_BR,
pt_PT,
ro,
ro_MD,
ru,
sk,
sv,
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 { DateDefinitions } from '../../..';
import month from './month';
import weekday from './weekday';

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

export default date;
62 changes: 62 additions & 0 deletions src/locales/ro_MD/date/month.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
export default {
wide: [
'Ianuarie',
'Februarie',
'Martie',
'Aprilie',
'Mai',
'Iunie',
'Iulie',
'August',
'Septembrie',
'Octombrie',
'Noiembrie',
'Decembrie',
],
// Property "wide_context" is optional, if not set then "wide" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
wide_context: [
'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',
],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: [
'Ian',
'Feb',
'Mar',
'Apr',
'Mai',
'Iun',
'Iul',
'Aug',
'Sep',
'Oct',
'Noi',
'Dec',
],
};
26 changes: 26 additions & 0 deletions src/locales/ro_MD/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default {
wide: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'],
// Property "wide_context" is optional, if not set then "wide" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
wide_context: [
'Luni',
'Marți',
'Miercuri',
'Joi',
'Vineri',
'Sâmbătă',
'Duminică',
],
abbr: ['Luni', 'Marți', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă', 'Duminică'],
// Property "abbr_context" is optional, if not set then "abbr" will be used instead
// It is used to specify a word in context, which may differ from a stand-alone word
abbr_context: [
'Luni',
'Marți',
'Miercuri',
'Joi',
'Vineri',
'Sâmbătă',
'Duminică',
],
};
23 changes: 23 additions & 0 deletions src/locales/ro_MD/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* 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 person from './person';
import phone_number from './phone_number';

const ro_MD: LocaleDefinition = {
title: 'Romanian (Moldova)',
cell_phone,
date,
internet,
location,
person,
phone_number,
};

export default ro_MD;
9 changes: 9 additions & 0 deletions src/locales/ro_MD/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default [
'com',
'ru',
'net',
'org',
// Moldavian
'md',
'ro.ru'
];
1 change: 1 addition & 0 deletions src/locales/ro_MD/internet/free_email.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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 { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';
import free_email from './free_email';

const internet: InternetDefinitions = {
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 ##'];
7 changes: 7 additions & 0 deletions src/locales/ro_MD/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default [
'{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}',
'{{location.city_prefix}} {{person.firstName}}',
'{{person.firstName}}{{location.city_suffix}}',
'{{person.lastName}}{{location.city_suffix}}',
'{{location.city_name}}',
];
Loading

0 comments on commit 0800610

Please sign in to comment.