Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): add Luxembourg (French) locale #1693

Merged
merged 5 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ However, in most cases, using a specific locale will be beneficial in the long t
| fr_BE | Français (Belgique) |
| fr_CA | French (Canada) |
| fr_CH | French (Switzerland) |
| fr_LU | French (Luxembourg) |
| ge | Georgian |
| he | Hebrew |
| hr | Hrvatski |
Expand Down
17 changes: 17 additions & 0 deletions src/locale/fr_LU.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 fr_LU from '../locales/fr_LU';

export const faker = new Faker({
locale: 'fr_LU',
localeFallback: 'en',
locales: {
fr_LU,
en,
},
});
10 changes: 10 additions & 0 deletions src/locales/fr_LU/cell_phone/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default [
'621 ### ###',
'661 ### ###',
'671 ### ###',
'691 ### ###',
'+352 621 ### ###',
'+352 661 ### ###',
'+352 671 ### ###',
'+352 691 ### ###',
];
11 changes: 11 additions & 0 deletions src/locales/fr_LU/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;
19 changes: 19 additions & 0 deletions src/locales/fr_LU/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import cell_phone from './cell_phone';
import internet from './internet';
import location from './location';
import phone_number from './phone_number';

const fr_LU: LocaleDefinition = {
title: 'French (Luxembourg)',
cell_phone,
internet,
location,
phone_number,
};

export default fr_LU;
1 change: 1 addition & 0 deletions src/locales/fr_LU/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['lu'];
12 changes: 12 additions & 0 deletions src/locales/fr_LU/internet/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { InternetDefinitions } from '../../..';
import domain_suffix from './domain_suffix';

const internet: InternetDefinitions = {
domain_suffix,
};

export default internet;
1 change: 1 addition & 0 deletions src/locales/fr_LU/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.city_name}}'];
14 changes: 14 additions & 0 deletions src/locales/fr_LU/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default [
'Diekirch',
'Differdange',
'Dudelange',
'Echternach',
'Esch-sur-Alzette',
'Ettelbruck',
'Grevenmacher',
'Luxembourg',
'Remich',
'Rumelange',
'Vianden',
'Wiltz',
];
18 changes: 18 additions & 0 deletions src/locales/fr_LU/location/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinitions } from '../../..';
import city from './city';
import city_name from './city_name';
import postcode from './postcode';
import state from './state';

const location: LocationDefinitions = {
city,
city_name,
postcode,
state,
};

export default location;
1 change: 1 addition & 0 deletions src/locales/fr_LU/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['####'];
14 changes: 14 additions & 0 deletions src/locales/fr_LU/location/state.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default [
'Capellen',
'Clervaux',
'Diekirch',
'Echternach',
'Esch-sur-Alzette',
'Grevenmacher',
'Luxembourg',
'Mersch',
'Redange',
'Remich',
'Vianden',
'Wiltz',
];
1 change: 1 addition & 0 deletions src/locales/fr_LU/phone_number/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['######', '########', '+352 ######', '+352 ########'];
12 changes: 12 additions & 0 deletions src/locales/fr_LU/phone_number/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { PhoneNumberDefinitions } from '../../..';
import formats from './formats';

const phone_number: PhoneNumberDefinitions = {
formats,
};

export default phone_number;
3 changes: 3 additions & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import fr from './fr';
import fr_BE from './fr_BE';
import fr_CA from './fr_CA';
import fr_CH from './fr_CH';
import fr_LU from './fr_LU';
import ge from './ge';
import he from './he';
import hr from './hr';
Expand Down Expand Up @@ -93,6 +94,7 @@ export type KnownLocale =
| 'fr_BE'
| 'fr_CA'
| 'fr_CH'
| 'fr_LU'
| 'ge'
| 'he'
| 'hr'
Expand Down Expand Up @@ -155,6 +157,7 @@ const locales: KnownLocales = {
fr_BE,
fr_CA,
fr_CH,
fr_LU,
ge,
he,
hr,
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/random.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`random > 42 > alphaNumeric > noArgs 1`] = `"n"`;

exports[`random > 42 > alphaNumeric > with length 1`] = `"nNWbJ"`;

exports[`random > 42 > locale 1`] = `"es"`;
exports[`random > 42 > locale 1`] = `"es_MX"`;

exports[`random > 42 > numeric > noArgs 1`] = `"3"`;

Expand Down